Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2fbfcea

Browse files
add more top domain
1 parent 45593e0 commit 2fbfcea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎findsth.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
import sys
33
import requests
44
import logging
5+
import time
56

67
protocol='http'
7-
topDomainName=['.com','.cn','.net','.de','.fi','.co.jp', '.ru','.me', '.edu']
8+
topDomainName=['.com','.cn','.net','.de','.fi','.co.jp', '.ru','.me', '.edu', '.af', '.ag', '.ai', '.ar', '.au', '.bd', '.bh', '.bn', '.bo', '.br', '.bz', '.co', '.cu', '.cy', '.do', '.ec', '.eg', '.et', '.fj', '.gh', '.gi', '.gt', '.hk', '.jm', '.kh', '.kw', '.lb', '.ly', '.mm', '.mt', '.mx', '.my', '.na', '.nf', '.ng', '.ni', '.np', '.om', '.pa', '.pe', '.pg', '.ph', '.pk', '.pr', '.py', '.qa', '.sa', '.sb', '.sg', '.sl', '.sv', '.tj', '.tr', '.tw', '.ua', '.uy', '.vc', '.vn']
89
argv=sys.argv[1:]
910
print(argv)
11+
start = time.time()
1012

1113
logging.basicConfig(level=logging.INFO)
1214
urls=[]
@@ -33,5 +35,7 @@
3335
for i in range(len(urls)):
3436
logging.info('Openning: %s',urls[i])
3537
webbrowser.open_new_tab(urls[i])
38+
end = time.time()
39+
logging.info('Costs seconds: %f s', end - start)
3640
#webbrowser.open_new_tab(url)
3741

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /