Skip to content

Instantly share code, notes, and snippets.

@Baekjoon
Created April 13, 2015 14:17
Show Gist options
  • Save Baekjoon/d6a38e379fbf6a6039c5 to your computer and use it in GitHub Desktop.
Save Baekjoon/d6a38e379fbf6a6039c5 to your computer and use it in GitHub Desktop.
ranklist-to-json-get-table
import urllib
from bs4 import BeautifulSoup
fp = urllib.urlopen('https://www.acmicpc.net/ranklist')
source = fp.read()
fp.close()
soup = BeautifulSoup(source)
table = soup.find(id="ranklist")
print table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment