Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def newK():
- resp = urllib.request.urlopen("http://khususme.blogspot.co.id/").read().decode("utf-8").replace('\n','')
- res = re.findall("<h2 class='post-title entry-title' itemprop='name'><a href=""'(.*?)'"">(.*?)</a></h2>", resp)
- newset = list()
- n = 1
- for a, b in res:
- newset.append("%s. %s: %s" % (n, b, a))
- n = n + 1
- return "<br/>".join(newset[0:10])
- =======================================
- elif cmd == "knew" and not user.name in blacklist and not room.name in deathroom:
- room.message(newK(), True )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement