Advertisement
Aha2Y

Untitled

Apr 3rd, 2012
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. #Meme module for internets.
  2. import urllib
  3. from BeautifulSoup import BeautifulSoup
  4. import sys
  5.  
  6. url = urllib.urlopen("http://api.automeme.net/text")
  7. soup = BeautifulSoup(url)
  8. print soup.pre.string.split("\n")[1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement