Skip to content

Commit

Permalink
scrape data for all countries and store it in the file if scraper.py …
Browse files Browse the repository at this point in the history
…is ran explicitly, remove pycache from git
  • Loading branch information
kronicka committed Jan 4, 2019
1 parent 56c9def commit 23f20f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file removed __pycache__/scraper.cpython-37.pyc
Binary file not shown.
5 changes: 5 additions & 0 deletions scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,8 @@ def store_scraped_data_in_file():

with open('countries.txt', 'w') as countries_file:
countries_file.write(json.dumps(countries_local))


if __name__ == '__main__':
print('Running the scraper and storing data as a serialized dict for all countries in /countries.txt.')
store_scraped_data_in_file()

0 comments on commit 23f20f5

Please sign in to comment.