-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
403 Error when attempting to use spy = ETF('SPY') #12
Comments
Hi @Cerebex, I had a look deeper into this issue, and it seems like VettaFi are now using JavaScript-based checks to verify that requests are not coming from bots. This can probably be solved by using Selenium to retrieve the page source, but I am quite busy these few days, so it will take me a while to get to. Will keep posted when a fix is pushed. |
Really appreciate it. I found I could get it to work with selenium, as you stated, but only when I physically opened the browser which is not ideal. |
@Cerebex If I am not wrong, you can run Selenium in headless mode. Are you saying it doesn't work when you do that? Either way, it will be great if you can share that code to help fix this issue. It will be great help to get a load off my back! :) |
Update: I will get this solved sometime in November/December. Apologies to whoever is using this package, but I do not have the time now to work on this. |
Using this as a guide: https://www.zenrows.com/blog/403-web-scraping#set-fake-user-agent
|
Describe the bug
403 Error when attempting to use spy = ETF('SPY')
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Pull information properly
Additional context
It times out and waits 15 minutes but does not fix the issue.
The text was updated successfully, but these errors were encountered: