Skip to content

Instantly share code, notes, and snippets.

View adich23's full-sized avatar
🎯
Focusing

Aditya Choudhary adich23

🎯
Focusing
View GitHub Profile
import urllib2
from bs4 import BeautifulSoup
page = urllib2.urlopen('http://www.codechef.com/rankings/ACMAMR14?utm_content=bufferd975d&utm_medium=social&utm_source=facebook.com&utm_campaign=buffer')
page = page.read()
soup = BeautifulSoup(page)
soup.prettify()
userranks = []
for anchor in soup.findAll('a', href=True):
p = anchor['href']
if "users/acm14am" in p:
# Author = Nikhil Venkat Sonti
# email = [email protected]
# github ID = shadowfax92
import sys
from xml.dom.minidom import _get_StringIO
from lxml import html
import requests
import os
import re
import time