Advertisement
dereksir

Untitled

Jul 23rd, 2023
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. import cloudscraper
  2.  
  3. # Create new cloudscraper instance with the captcha dictionary as an argument
  4. scraper = cloudscraper.create_scraper(
  5.  
  6.     captcha={
  7.     'provider': '2captcha',
  8.     'api_key': 'your_2captcha_api_key'
  9.   }
  10.  
  11. )
  12.  
  13.  
  14. # Make your request.
  15. response = scraper.get('https://example.com')
  16.  
  17.  
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement