Skip to content

disinfoRG/ZeroLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZeroLoader

ZeroLoader is a part of 0archive project. Its purpose is to read 0archive's public data from google drive into csv format.

Setup

  1. Get google api credentials

    Follow Step 1 from this tutorial.

  2. Installation It's recommended to use a virtualenv or conda env.

    $ pip install -U zeroloader.py
  3. Create environment file

    touch .env
    echo GDRIVE_PUBLIC_FILE_MAPPING_ID=1OwAGYg7dJob_VMW8vt2FP4fO5Ie7B3EW > .env
  4. Load data

    You need the producer_id to successfully load. The id of each producer could be found from google drive folder name or from this csv.

    import zeroloader as zl
    
    df = zl.load_data(:producer_id, :yyyy-mm, :path-to-gdrive-api-credentials)
    
    # e.g. Load 2020 June's data of storm.mg into a csv
    df = zl.load_data("5030bba7-81fe-11ea-8627-f23c92e71bad", "2020-06", "service.json") 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages