Skip to content

Working on Ubuntu but not in Raspbian (Buster) #466

@RicardoMartinManso

Description

@RicardoMartinManso

"""
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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions