Advertisement
Thelorgoreng

nontonanime.web.id anime search code(Chatango Bot)

Oct 8th, 2015
770
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #############################################
  2. ## Search any Anime in NontonAnime.web.id ##
  3. ## Code Made by Thelorgorenk ##
  4. #############################################
  5. if cmd =="nas":
  6. sex = args
  7. data = urlreq.urlopen("http://nontonanime.web.id/?s="+sex+"&post_type=anime")
  8. udict = data.read().decode("utf-8")
  9. data = re.findall('<h2><a href="(.*?)">(.*?)</a>', udict)
  10. newset = list()
  11. num = 1
  12. for link, title in data:
  13. newset.append(("(%s) <b>%s</b> - %s") % (num, title, link))
  14. num = num+1
  15. room.message("This is the contain Search in NontonAnime.web.id: <br/>"+"<br/>".join(newset[0:10]),True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement