import requests
import json
url = "https://api.olostep.com/v1/scrapes"
payload = {
"url_to_scrape": "https://www.feizy.com/account-dashboard",
"formats": ["html", "markdown"],
"remove_css_selectors": "none",
"country": "US",
"context": {
"id": "ctx_yylqbfayto"
}
}
headers = {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
}
response = requests.request("POST", url, json=payload, headers=headers)
# Parse the JSON response
data = response.json()
# Print the JSON with proper indentation
print(json.dumps(data, indent=4))