py-etherscan-api
py-etherscan-api copied to clipboard
Ropsten API seems to produce 403 Bad Response?
Hello!
I would like to use your library to access the Ropsten network. I saw that the main change to switch networks was the base URL. I cloned your repo, and added a flag to the Account and Client init functions for use_ropsten=False. Then added an if in the init to change the URL if that is true. Testing this produced a 403 error.
I then put the Account class back to its original state, and replaced client.py with client.ropsten.py and tried again. Again, this produced a 403 bad response.
Have you encountered this issue before, and do you know the root cause of it? If I can get this working, I will submit the code.
Thank you!
I'm not for sure exactly... I'm trying to work it out.. thank you for your help in advance. I'll see what I can figure out with it.
On Mon, Aug 23, 2021, 7:21 AM walesdata @.***> wrote:
Hello!
I would like to use your library to access the Ropsten network. I saw that the main change to switch networks was the base URL. I cloned your repo, and added a flag to the Account and Client init functions for use_ropsten=False. Then added an if in the init to change the URL if that is true. Testing this produced a 403 error.
I then put the Account class back to its original state, and replaced client.py with client.ropsten.py and tried again. Again, this produced a 403 bad response.
Have you encountered this issue before, and do you know the root cause of it? If I can get this working, I will submit the code.
Thank you!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/corpetty/py-etherscan-api/issues/110, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATAXCVOI6KFI2CTALXQ6D4LT6JDOTANCNFSM5CUSMV5A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
U robbd me
Hello!
I would like to use your library to access the Ropsten network. I saw that the main change to switch networks was the base URL. I cloned your repo, and added a flag to the Account and Client init functions for use_ropsten=False. Then added an if in the init to change the URL if that is true. Testing this produced a 403 error.
I then put the Account class back to its original state, and replaced client.py with client.ropsten.py and tried again. Again, this produced a 403 bad response.
Have you encountered this issue before, and do you know the root cause of it? If I can get this working, I will submit the code.
Thank you!
hello
I meet the same problem error 403.
Essentially Etherscan is blocking requests that don't provide a User-agent so add a User-agent header property if using the Python requests module. ----https://stackoverflow.com/questions/52343308/how-to-run-shell-script-file-on-ipython-at-google-colab
that might help you.
Thank you!
https://stackoverflow.com/questions/38489386/python-requests-403-forbidden/38489588#38489588