-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrune.py
42 lines (34 loc) · 1.16 KB
/
rune.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
from curl_cffi import requests
from loguru import logger
rune_name_list = [
'UNCOMMON•GOODS'
]
def is_exist_rune(rune_name):
headers = {
'accept': '*/*',
'accept-language': 'zh-CN,zh;q=0.9',
'cache-control': 'no-cache',
'origin': 'https://luminex.io',
'pragma': 'no-cache',
'priority': 'u=1, i',
'referer': 'https://luminex.io/',
'sec-ch-ua': '"Chromium";v="124", "Google Chrome";v="124", "Not-A.Brand";v="99"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"macOS"',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-site',
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36',
}
params = {
'rune_text': rune_name,
}
response = requests.get('https://brc20-api.luminex.io/runes/rune', params=params, headers=headers).json()
return len(response) != 0
def run():
for name in set(rune_name_list):
is_exist = is_exist_rune(name)
if not is_exist:
print(name)
if __name__ == "__main__":
run()