Skip to content
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

please update >> line:17>> https://blockchain.info/address?address={add}&symbol=BTC&start=1&limit=10 #4

Open
timekswaste opened this issue Sep 12, 2021 · 3 comments

Comments

@timekswaste
Copy link

timekswaste commented Sep 12, 2021

user@b5b53c072cda:~/Downloads/BTC-Lottery-main$ python BTC_Lottery_From_List.py
Page no. : 100


Error: JSONDecodeError('Expecting value: line 1 column 1 (char 0)')
Error: JSONDecodeError('Expecting value: line 1 column 1 (char 0)')
Error: JSONDecodeError('Expecting value: line 1 column 1 (char 0)')
Error: JSONDecodeError('Expecting value: line 1 column 1 (char 0)')
Error: JSONDecodeError('Expecting value: line 1 column 1 (char 0)')

@ReshyResh
Copy link
Owner

Hello, that error is thrown because of detection from the blockchain API as spam. You can get around it adding a timer to wait after each check or change the API of the bliockchain it's getting data from.
Another API you could use is https://blockchain.info/address/{address}?format=json which usually has a higher tolerance of requests per minute, but the general recomendation is not opening too many instances of the program to avoid getting blacklisted and not being able to send requests for a while.

@allizza435
Copy link

how to restart (say every 60 minutes), select a new page?

@timekswaste
Copy link
Author

hi
please update for any one 1,2,3 ## any changes replay me i waiting for your update
1.Blockchain.info/multiaddr join query 128 addresses. 10 Seconds for sleep so that the API does not block you
2. # Reset counter
query = []
sleep(10) # Reduce Sleep to go faster
3.how to use unlimted proxy run your script BTC_Lottery_From_List.py

any changes replay me i waiting for your update

any changes replay me i waiting for your update

any changes replay me i waiting for your update

Repository owner deleted a comment from tarunjainsagar Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@ReshyResh @allizza435 @timekswaste and others