Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Feng-Gao committed Mar 12, 2019
1 parent d1803cd commit 938b37c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -12,8 +12,8 @@
#taipei provides an api to fetch all metadata
base_url = 'https://data.taipei/opendata/datalist/apiAccess?scope=datasetMetadataSearch&limit=%d&offset=%d'
index = int(os.environ['MORPH_INDEX'])
limit = int(os.environ['MORPH_LIMIT']
index_offset = int(os.environ['MORPH_OFFSET']
limit = int(os.environ['MORPH_LIMIT'])
index_offset = int(os.environ['MORPH_OFFSET'])
taipei_url = base_url + str(index)
result = requests.get(taipei_url)
package_count = result.json()['result']['count']
Expand Down

0 comments on commit 938b37c

Please sign in to comment.