modified_cfscrape.py (257B)
1 #!/usr/bin/env python3 2 # Can scrape cloudflare-protected websites 3 import cfscrape, sys 4 scraper=cfscrape.create_scraper() 5 url=sys.argv[1] 6 cfurl = scraper.get(url).content 7 name = url.split('/')[-1].replace("$20", "") 8 with open(name, 'wb') as f: f.write(cfurl)