Created
September 25, 2016 01:28
-
-
Save alexpetralia/77e5b0ebeb174a00355eb245116dd6e6 to your computer and use it in GitHub Desktop.
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
data = [] | |
for topic, handle in topics.items(): | |
print(handle) | |
response = requests.get(domain + handle) | |
soup = BeautifulSoup(response.text, 'lxml') | |
survey_questions = list('ABCD')[:len(soup.findAll('h3', {'class': 'surveyQuestion'}))] | |
survey_date = soup.find('h6').get_text() | |
tables = soup.findAll('table', {'class': 'responseDetail'}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment