Skip to content

Instantly share code, notes, and snippets.

View DataThinkMonkey's full-sized avatar

Jared Bernard DataThinkMonkey

  • Metropolitan Community College
View GitHub Profile
@DataThinkMonkey
DataThinkMonkey / scrape_webadvisor.py
Last active August 2, 2017 04:51 — forked from Rhomboid/scrape_webadvisor.py
WebAdvisor scraping example
import requests
from bs4 import BeautifulSoup
from itertools import chain
baseurl = 'https://webadvisor.iwcc.edu/WebAdvisor/WebAdvisor'
main_page = {'type': 'M', 'pid': 'CORE-WBMAIN'}
section_search = {'CONSTITUENCY': 'WBAP', 'type': 'P', 'pid': 'ST-WESTS12A'}
s = requests.Session()
s.params = {'TOKENIDX': ''}