Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #FMylife module for internets.
- import urllib
- from BeautifulSoup import BeautifulSoup
- slogan_url = urllib.urlopen("http://parsers.faux-bot.com/slogan/%" % slogan)
- slogan = BeautifulSoup(slogan_url)
- x = str(slogan)
- x = x.split()
- class Quote():
- def __init__(self, number, text, disagree, agree):
- self.slogan = slogan
- def get():
- slogan = " ".join(x[1:]).strip("End Response:")
- q = Quote(slogan)
- return q
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement