Created
October 3, 2012 12:55
-
-
Save jpanganiban/3826762 to your computer and use it in GitHub Desktop.
Unleash the Cracken
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
import requests | |
from bs4 import BeautifulSoup | |
url = 'http://polli.me/events.php?eid=%s&iids=%s' | |
while True: | |
response = requests.get('http://polli.me/events.php?ec=605061973') | |
soup = BeautifulSoup(response.text) | |
teams = soup.find_all('li') | |
for team in teams: | |
if ''.join(str(team.find('a').find('font').text).split()).lower() == 'beerspots.ph': | |
response = requests.get(team.find('a')['href']) | |
if response.status_code == 200: | |
print "voted" | |
else: | |
print "failed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cheaters are losers :D