Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kmturley/greenhouse-data-migration
Data migration tool to automatically download greenhouse.io data
https://github.com/kmturley/greenhouse-data-migration
Last synced: 1 day ago
JSON representation
Data migration tool to automatically download greenhouse.io data
- Host: GitHub
- URL: https://github.com/kmturley/greenhouse-data-migration
- Owner: kmturley
- Created: 2019-05-31T23:49:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T00:29:00.000Z (over 1 year ago)
- Last Synced: 2024-05-02T00:59:44.817Z (7 months ago)
- Language: JavaScript
- Size: 39.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# greenhouse-data-migration
Data migration tool to automatically download greenhouse.io data:
* Bash
* NodeJS 8.x## Installation
To install run the command:
npm install -g git+https://[email protected]/kmturley/greenhouse-data-migration.git
Verify it's been installed by running:
greenhouse --version
Create a credentials.json file containing your account details in the format:
{
"domain": "harvest.greenhouse.io",
"token": "X",
"root": "v1"
}Now copy the file to the tool directory using:
cp ./credentials.json /usr/local/lib/node_modules/greenhouse-data-migration
Or if you use nvm:
cp ./credentials.json /Users/username/.nvm/versions/node/v8.9.4/lib/node_modules/greenhouse-data-migration
## Usage
Download data from the API using:
greenhouse download --type applications
Types available (use 'all' to download all types in one go):
applications
candidates
close_reasons
degrees
demographics/questions
departments
eeoc
email_templates
job_posts
job_stages
jobs
offers
offices
rejection_reasons
scheduled_interviews
scorecards
sources
users
user_rolesIf endpoints support it, you can add the paginate option to download additional pages:
greenhouse download --type applications --paginate true
greenhouse download --type candidates --paginate true
greenhouse download --type departments --paginate true
greenhouse download --type email_templates --paginate true
greenhouse download --type job_posts --paginate true
greenhouse download --type job_stages --paginate true
greenhouse download --type jobs --paginate true
greenhouse download --type offers --paginate true
greenhouse download --type offices --paginate true
greenhouse download --type rejection_reasons --paginate true
greenhouse download --type scheduled_interviews --paginate true
greenhouse download --type scorecards --paginate true
greenhouse download --type sources --paginate true
greenhouse download --type users --paginate trueIf you hit rate limits, you can adjust per_page and page url params:
greenhouse download --type "applications?page=1&per_page=500" --paginate true
To download attachments for a single feed use the command:
greenhouse download-attachments --type candidates_1
greenhouse download-activities --type candidates_1For a full list of commands use:
greenhouse --help
## Contact
For more information please contact kmturley