| #!/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