Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:ae5b34f6faccec14fd66 Secret
Created Dec 14, 2012

What would you like to do?
#!/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