Advertisement
thiagobodruk

Android Crawler

May 21st, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import android, re, urllib
  2. droid = android.Android()
  3. url = droid.dialogGetInput("Informe o URL").result
  4. for i in re.findall('''href=["'](.[^"']+)["']''', urllib.urlopen(url).read(), re.I):
  5.     print i
  6.     for ee in re.findall('''href=["'](.[^"']+)["']''', urllib.urlopen(i).read(), re.I):
  7.         print ee
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement