update script
This commit is contained in:
parent
2adc0ebabf
commit
7f8da6f955
28
fetch_ips.py
28
fetch_ips.py
|
@ -140,20 +140,20 @@ def main(verbose=False) -> None:
|
||||||
print('Start script.')
|
print('Start script.')
|
||||||
session = HTMLSession()
|
session = HTMLSession()
|
||||||
content = ""
|
content = ""
|
||||||
content_list = get_json(session)
|
# content_list = get_json(session)
|
||||||
for item in content_list:
|
# for item in content_list:
|
||||||
content += item[0].ljust(30) + item[1] + "\n"
|
# content += item[0].ljust(30) + item[1] + "\n"
|
||||||
# content_list = []
|
content_list = []
|
||||||
# for index, github_url in enumerate(GITHUB_URLS):
|
for index, github_url in enumerate(GITHUB_URLS):
|
||||||
# try:
|
try:
|
||||||
# ip = get_ip(session, github_url)
|
ip = get_ip(session, github_url)
|
||||||
#
|
|
||||||
# content += ip.ljust(30) + github_url + "\n"
|
content += ip.ljust(30) + github_url + "\n"
|
||||||
# content_list.append((ip, github_url,))
|
content_list.append((ip, github_url,))
|
||||||
# except Exception:
|
except Exception:
|
||||||
# continue
|
continue
|
||||||
# if verbose:
|
if verbose:
|
||||||
# print(f'process url: {index + 1}/{len(GITHUB_URLS)}')
|
print(f'process url: {index + 1}/{len(GITHUB_URLS)}')
|
||||||
|
|
||||||
if not content:
|
if not content:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user