Skip to content

Instantly share code, notes, and snippets.

@inks007
inks007 / crunchyflare_premium.py
Last active September 4, 2018 21:12 — forked from kaithar/crunchyflare.py
Cloudflare is a lovely thing when I'm not trying to work around it...
import cfscrape
import http.cookiejar
from bs4 import BeautifulSoup
scraper = cfscrape.create_scraper()
try:
import config
scraper.headers["User-Agent"] = config.UA
except: