Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cloudscraper
- # Create new cloudscraper instance with the captcha dictionary as an argument
- scraper = cloudscraper.create_scraper(
- captcha={
- 'provider': '2captcha',
- 'api_key': 'your_2captcha_api_key'
- }
- )
- # Make your request.
- response = scraper.get('https://example.com')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement