Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from urllib import urlopen
- parse = 'div id=i_time'
- link = 'https://www.timeanddate.com/worldclock/fullscreen.html?n='
- def get(link,parse):
- a = urlopen(link)
- b = a.read()
- local = b.find(parse)
- if local == -1:
- return 'false'
- else:
- local += len(parse)+1
- lo = local
- string = ''
- while True:
- if b[lo:lo+1] == '<':
- break
- else:
- string += b[lo:lo+1]
- lo+=1
- return string
- print get(link,parse)
- for i in range(7000):
- d = link + str(i)
- c = get(d,parse)
- if c == 'false':
- print str(i)+' : <error>'
- else:
- print str(i)+')' + get(d,'div id=rs1><div')
- print '[+] time: ' + c
- print str(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement