Skip to content

Instantly share code, notes, and snippets.

Created December 14, 2012 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ae5b34f6faccec14fd66 to your computer and use it in GitHub Desktop.
Save anonymous/ae5b34f6faccec14fd66 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
from BeautifulSoup import BeautifulSoup
import requests
import re
url = 'http://www.us1.darkfallonline.com/news'
r = requests.get(url)
soup = BeautifulSoup(r.text)
for img in soup.findAll('img'):
if img["src"].startswith("images/players_online"):
print "US1: Up for players!"
else:
print "US1: Down for players!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment