meatyite / python-socialblade

Object oriented SocialBlade API wrapper
The Unlicense
18 stars 9 forks source link

Cloudflare now blocks API access to socialblade. #3

Closed meatyite closed 4 years ago

meatyite commented 4 years ago

This package wont work until socialblade decides to stop using cloudflare. I can't fix this issue, i'm sorry but this package will not work anymore.

FredHags commented 4 years ago

Hi,

replace the "requests" with "cloudscraper" and it will work again. also "self.s = requests.Session()" will be "self.s = cloudscraper.create_scraper()"

meatyite commented 4 years ago

Hi,

replace the "requests" with "cloudscraper" and it will work again. also "self.s = requests.Session()" will be "self.s = cloudscraper.create_scraper()"

oh my god i've been searching for something like this for ages. Thanks! The latest commit now implemented this and its fixed.