Navigation Menu

Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lucahammer committed May 1, 2015
1 parent f298d8b commit f143e7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scraper.py
Expand Up @@ -12,13 +12,11 @@
print 'See http://data.re-publica.de/doc/ to find supported events'

#make nodes
'''
print 'nodedef>name VARCHAR,label VARCHAR'
response = requests.get(baseUrl+eventId+'/speakers').content
speakers = json.loads(response)
for speaker in speakers['data']:
print speaker['id']+','+speaker['name'].encode('ascii', 'replace')
'''

#make edges
print 'node1 VARCHAR,node2 VARCHAR,label VARCHAR'
Expand All @@ -29,4 +27,5 @@
for i, speaker in enumerate(session['speakers']):
for y in range (i, len(session['speakers'])-1):
print session['speakers'][i]['id']+','+session['speakers'][y+1]['id']+','+session['title'].encode('ascii', 'replace')

quit()

0 comments on commit f143e7f

Please sign in to comment.