Skip to content

Instantly share code, notes, and snippets.

@kaithar
kaithar / crunchyflare.py
Created August 7, 2017 07:32
Cloudflare is a lovely thing when I'm not trying to work around it...
import cfscrape
import http.cookiejar
scraper = cfscrape.create_scraper()
try:
import config
scraper.headers["User-Agent"] = config.UA
except:
# Oh well