Monday, 31 August 2015

URL Crawler

Welcome back from the exciting emotion filled MVA, it's amazing how singers can make come backs.

Today we decided to post a new article on how to grab URL from any Web site.

from urllib import urlopen
import re
url=www.google.com 
html=urlopen(url)
ht=html.read()
G=re.compile('href="(.*?)"')
t=G.findall(ht)
for i in t:
if len(i)<=53:
print "[+] ID FOUND:",i+'\n'
else:
continue

Hit the comment section for any inconvenience, otherwise just share, like, actually be social
--
Always smile and laugh just be happy.

No comments:

Post a Comment