all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
7
Task/Web-scraping/Python/web-scraping.py
Normal file
7
Task/Web-scraping/Python/web-scraping.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import urllib
|
||||
page = urllib.urlopen('http://tycho.usno.navy.mil/cgi-bin/timer.pl')
|
||||
for line in page:
|
||||
if ' UTC' in line:
|
||||
print line.strip()[4:]
|
||||
break
|
||||
page.close()
|
||||
Loading…
Add table
Add a link
Reference in a new issue