alvarobartt / investiny

🤏🏻 `investpy` but made tiny
https://alvarobartt.github.io/investiny
MIT License
316 stars 36 forks source link

Solution with cloudscraper #71

Open gohibiki opened 1 year ago

gohibiki commented 1 year ago

It seems to work fine using cloudscraper instead of httpx

Just changed and added this :

    scraper = cloudscraper.create_scraper(
        browser={
            'browser': 'chrome',
            'platform': 'android',
            'desktop': False
        }
    )     

    r = scraper.get(url, params=params, headers=headers)