Open RicardoMartinManso opened 9 months ago
""" On UBUNTU 22.04: working OK. On Raspibian (Buster): not working (HTTP error 403). Others url working ok. pip3 show cfscrape ----> 2.1.1 (on ubuntu and Raspbian) """
import cfscrape
scraper = cfscrape.create_scraper() # returns a CloudflareScraper instance r=scraper.get("https://www.lse.co.uk/share-prices/indices/ftse-100/constituents.html") print (r.text) print (r.status_code)
uname -m ---> armv7l
""" On UBUNTU 22.04: working OK. On Raspibian (Buster): not working (HTTP error 403). Others url working ok. pip3 show cfscrape ----> 2.1.1 (on ubuntu and Raspbian) """
import cfscrape
scraper = cfscrape.create_scraper() # returns a CloudflareScraper instance r=scraper.get("https://www.lse.co.uk/share-prices/indices/ftse-100/constituents.html") print (r.text) print (r.status_code)