mirror of
https://github.com/statbate/docs.git
synced 2026-08-11 02:42:41 +00:00
update
This commit is contained in:
commit
eabb01cfef
21 changed files with 921 additions and 0 deletions
19
install/cli/cloudscraper.py
Normal file
19
install/cli/cloudscraper.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import cloudscraper
|
||||
import sys
|
||||
|
||||
scraper = cloudscraper.create_scraper(
|
||||
delay=15,
|
||||
interpreter='nodejs',
|
||||
captcha={
|
||||
'provider': '2captcha',
|
||||
'api_key': ''
|
||||
}
|
||||
)
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
print('no url');
|
||||
exit(0)
|
||||
|
||||
print(scraper.get(sys.argv[1]).text)
|
||||
Loading…
Add table
Add a link
Reference in a new issue