Advertisement
dereksir

Untitled

Jul 23rd, 2023
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. import cloudscraper
  2.  
  3. # Create new cloudscraper instance
  4. scraper = cloudscraper.create_scraper()
  5.  
  6. # Specify proxies
  7. proxy = {
  8.     'http': 'http://your-proxy-ip:port',
  9.     'https': 'https://your-proxy-ip:port'
  10. }
  11.  
  12. # Make request using specified proxies
  13. response = scraper.get('https://example.com', proxies=proxy)
  14.  
  15.  
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement