justetf-scraping icon indicating copy to clipboard operation
justetf-scraping copied to clipboard

Issue with redirects

Open blackwiz4rd opened this issue 11 months ago • 2 comments

In case you pass an ISIN which does not exist to load_chart, the API call might make a redirect so I suggest adding

allow_redirects=False,

on the requests.

blackwiz4rd avatar Jan 10 '25 21:01 blackwiz4rd

Hi @blackwiz4rd, can you give me an example of such to be able to reproduce and check the behavior?

druzsan avatar Jan 18 '25 07:01 druzsan

Hello, I'm unable to reproduce it. Don't know why. I think I got this issue while not using your plugin but with my custom scraper. Anyway, adding

allow_redirects=False,

should not cause any issues and might be beneficial for future changes.

blackwiz4rd avatar Jan 23 '25 22:01 blackwiz4rd