RintoMuhamad

Hentai Haven

Apr 16th, 2016
814
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. def newHh():
  2. headers = {}
  3. headers['User-Agent'] = "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.27 Safari/537.17"
  4. req = urllib.request.Request("http://hentaihaven.org", headers = headers)
  5. resp = urllib.request.urlopen(req).read().decode("utf-8").replace('\n','').replace('\r','').replace('\t','')
  6. anjay = re.findall('<h3><a href="(.*?)">(.*?)</a>', resp)
  7. setter = list()
  8. q = 1
  9. for link, title in anjay:
  10. setter.append('(<b>%s</b>). <b>%s</b>: %s' % (q, title, link))
  11. q += 1
  12. return "<br/>".join(setter[0:10])
  13.  
  14. Commandnya :
  15.  
  16. if cmd == "hhnew": room.message(newHh(), True)
Advertisement
Add Comment
Please, Sign In to add comment