Created
April 13, 2015 14:17
-
-
Save Baekjoon/d6a38e379fbf6a6039c5 to your computer and use it in GitHub Desktop.
ranklist-to-json-get-table
This file contains hidden or 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 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