Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import httpx
- # define URL and API key
- url = 'https://www.amazon.com/Lumineux-Teeth-Whitening-Strips-Treatments-Enamel-Safe/dp/B082TPDTM2/?th=1'
- apikey = '<YOUR_ZENROWS_API_KEY>'
- # parameters for the ZenRows API request
- params = {
- 'apikey': apikey,
- 'url': url,
- 'js_render': 'true',
- 'premium_proxy': 'true',
- }
- # make a GET request using httpx with the specified parameters
- with httpx.Client(params=params, timeout=40) as client:
- response = client.get("https://api.zenrows.com/v1/")
- print(response.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement