Skip to content

Instantly share code, notes, and snippets.

@pilgwon
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pilgwon/2956f6e5f93dfe49cf91 to your computer and use it in GitHub Desktop.
Save pilgwon/2956f6e5f93dfe49cf91 to your computer and use it in GitHub Desktop.
DDP exhibition crawler
import requests
from bs4 import BeautifulSoup
r = requests.get('http://www.ddp.or.kr/EP010001/getInitPage.do')
soup = BeautifulSoup(r.text)
exhibit_list = soup.find_all(class_='gallery_list')[0].find_all('li')
for ex in exhibit_list:
print ex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment