Skip to content

Instantly share code, notes, and snippets.

@jpanganiban
Created October 3, 2012 12:55
Show Gist options
  • Save jpanganiban/3826762 to your computer and use it in GitHub Desktop.
Save jpanganiban/3826762 to your computer and use it in GitHub Desktop.
Unleash the Cracken
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"
@johnarce
Copy link

johnarce commented Oct 3, 2012

Cheaters are losers :D

@jpanganiban
Copy link
Author

Hahaha!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment