Skip to content

Convert initial scraped shelter information from csv to json

Notifications You must be signed in to change notification settings

hurricane-response/csv-json-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csv-json-converter

Convert initial scraped shelter information from csv to json

  1. Download the code
  2. Set up a Google API Account
  3. Rename settings.py.example to settings.py
  4. Set value of the Google API Key in settings.py
  5. Delete the files in the data folder. They were used to test and demonstrate the code.
  6. Download the Shelter CSV from the linked Google Drive
  7. Copy the Downloaded Shelter CSV into the Data folder
    • Alternatively, change the file path in settings.py to whereever you would like to place the data
  8. Run the program
  9. Go into the data folder and retrieve the newly created JSON file

**Note: Address_name is swapped with formatted_address from googleapi results. # 1. we're unsure of address name's true purpose # 2. formatted address serves as a sanity check that google returned the correct location
# 3. Goole buries values like postal code into its JSON results

About

Convert initial scraped shelter information from csv to json

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages