How to scrape for Base58 address batches

9 replies 147 views
nickaltMember
Posts: 32 · Reputation: 129
#1Jul 3, 2017, 09:39 AM
Hey everyone, what's the best method to scrape the web for a ton of Base58 (legacy) addresses? I’m looking for ways to dig up as many as possible and check their transactions and balances. Appreciate any tips!
6 Reply Quote Share
im_apeHero Member
Posts: 629 · Reputation: 3824
#2Jul 3, 2017, 12:44 PM
Run a full node with modifications so that it can index the blockchain based on addresses like what the block explorers do so that there is an up to date list of addresses with all UTXOs. Otherwise you can only use third party services like the existing block explorers with their limitations to get a historical snapshot of the blockchain, addresses or UTXOs. Like this one to get addresses (base58 and others) with balance alongside maybe this one.
2 Reply Quote Share
cipher42Full Member
Posts: 133 · Reputation: 682
#3Jul 3, 2017, 02:12 PM
Blockchair.com has data dumps. https://gz.blockchair.com/bitcoin/addresses/ The file for Bitcoin addresses on 22-May-2024 01:23 is 1 GB. You can download the file (.tsv) and do your filter to check Legacy addresses and balances.
1 Reply Quote Share
nickaltMember
Posts: 32 · Reputation: 129
#4Jul 3, 2017, 08:08 PM
Thank you Gentlemen, excellent suggestions!
1 Reply Quote Share
hash_bossLegendary
Posts: 1166 · Reputation: 5261
#5Jul 4, 2017, 02:21 AM
OP also could run either block explorer/Electrum server, where OP could directly access database created by those. It's great suggestion. Although LoyceV website seems to be down where my browser shows ERR_CONNECTION_RESET or PR_IO_TIMEOUT_ERROR. It's not practical due to default 10 kB/s limit though.
3 Reply Quote Share
im_apeHero Member
Posts: 629 · Reputation: 3824
#6Jul 4, 2017, 05:18 AM
It's not down since I can access it using my Tor browser. However I can't access it normally! The DNS lookup fails which is weird.
2 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#7Jul 4, 2017, 09:18 AM
It works for me: Just in case, I restarted Apache2. That took a lot longer than I expected, I don't know why. Maybe it needed a good kick Try without "http://", that made it work here. For "loads" of addresses, I recommend this: Click the quote to download the files.
0 Reply Quote Share
nickaltMember
Posts: 32 · Reputation: 129
#8Jul 6, 2017, 07:56 AM
Thank you LoyceV, this is very useful. Is there a way or command you could recommend to sort or isolate Base58 (legacy) addresses from the TSV sheet > to a data.txt file? Thanks.
2 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#9Jul 7, 2017, 12:59 PM
Use grep: I did it for you: legacy_and_balance.tsv (file will be deleted in 24h).
3 Reply Quote Share
nickaltMember
Posts: 32 · Reputation: 129
#10Jul 7, 2017, 01:26 PM
Thank you LoyceV !! this is awesome ! Ill be able to do it from now on.
2 Reply Quote Share

Related topics