-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
26 lines (21 loc) · 697 Bytes
/
Copy pathmain.py
File metadata and controls
26 lines (21 loc) · 697 Bytes
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
from methods import *
from config import *
from wallet import *
import warnings
warnings.filterwarnings("ignore")
queries = [line.strip() for line in open(QUERIES)]
privkey = seed_to_privkey(SEED, path="m/44'/118'/0'/0/0")
address = privkey_to_address(privkey)
number = get_number(address)
sequence = get_sequence(address)
account = {
"address": address,
"privkey": privkey,
"number": number,
"sequence": sequence
}
for query in queries:
print('the progress:', queries.index(query)+1, 'of', len(queries))
print('collecting data for', '\n', '***********', query, ' ***********', '\n', 'keyword')
memo = 'crawled by wiki crawler'
processor(query, account, memo)