Advertisement
Aha2Y

Untitled

Apr 2nd, 2012
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. #FMylife module for internets.
  2. import urllib
  3. from BeautifulSoup import BeautifulSoup
  4.  
  5. slogan_url = urllib.urlopen("http://parsers.faux-bot.com/slogan/%" % slogan)
  6. slogan = BeautifulSoup(slogan_url)
  7. x = str(slogan)
  8. x = x.split()
  9.  
  10. class Quote():
  11.    def __init__(self, number, text, disagree, agree):
  12.       self.slogan = slogan
  13. def get():
  14.     slogan = " ".join(x[1:]).strip("End Response:")
  15.     q = Quote(slogan)
  16.     return q
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement