Advertisement
dereksir

Untitled

Oct 2nd, 2023 (edited)
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. import urllib3
  2.  
  3. url = "https://www.g2.com/"
  4. apikey = "Your_ZenRows_API_Key"
  5. params = {
  6.     "url": url,
  7.     "apikey": apikey,
  8.     "js_render": "true",
  9.     "antibot": "true",
  10.     "premium_proxy": "true",
  11. }
  12.  
  13. # Create a urllib3 PoolManager
  14. http = urllib3.PoolManager()
  15.  
  16. # Encode the parameters and make a GET request through the ZenRows API
  17. request_url = "https://api.zenrows.com/v1/"
  18. response = http.request_encode_url("GET", request_url, fields=params)
  19.  
  20.  
  21. # Print the response content
  22. print(response.data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement