-
Notifications
You must be signed in to change notification settings - Fork 23
/
CMD_1.2.py
27 lines (25 loc) · 863 Bytes
/
CMD_1.2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import urllib.request
import time
import sys
import os
import re
pages = 0
print("Loaded Auto keys.lol CMD VERSION 1.2")
print("Started search...")
try:
while 5 > 1:
webUrl = urllib.request.urlopen('https://keys.lol/bitcoin/random')
time.sleep(5)
data = webUrl.read()
result = re.findall(r"[-+]?\d*\.\d+|\d+", str(data))
for i in result:
if str(i) + " btc" in str(data):
if float(i) > 0:
with open('ValidWallets.txt', 'a') as appendFile:
appendFile.write('{} btc\n'.format(str(i)))
appendFile.write('{}\n'.format(webUrl.geturl()))
pages = pages + 1
sys.stdout.write("\rPages read: {}".format(str(pages)))
sys.stdout.flush()
except TimeoutError:
os.execv(sys.executable, ['python'] + sys.argv)