-
-
Save anonymous/ae5b34f6faccec14fd66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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