https://github.com/a-know/goramoph
Tool to transfer the play history of iTunes to BigQuery
https://github.com/a-know/goramoph
Last synced: 12 months ago
JSON representation
Tool to transfer the play history of iTunes to BigQuery
- Host: GitHub
- URL: https://github.com/a-know/goramoph
- Owner: a-know
- License: mit
- Created: 2014-11-05T00:37:38.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-18T06:00:22.000Z (about 11 years ago)
- Last Synced: 2025-06-12T03:45:33.971Z (about 1 year ago)
- Language: Go
- Size: 574 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goramoph
## About
`goramoph` is a tool to load the play history of iTunes to BigQuery.
## Prepare
1. Download the `Google Cloud SDK` and dispense the authentication.
* https://cloud.google.com/sdk/
* FYI http://qiita.com/yuko/items/1c4ee5b081c5b6a3ac8a
* if you use `zsh`, see also http://tsukaby.com/tech_blog/archives/482
* Following the approval authority is the minimum required
* `Google Cloud Storage`
* `Google BigQuery`
2. Create Project for goramoph
* Access https://console.developers.google.com/ and signin.
* Click [Create Project] and create Project.
* Please specify `goramoph` in `Project Name`.
* Please specify unique string in `Project ID`. (ex. a-know-goramoph)
* You have to enable billing settings.
3. Project Setting
* `$ gcloud config set project `
* ex. `$ gcloud config set project a-know-goramoph`
## How to use
`$ go run goramoph.go [path to iTunes Music Library.xml]`
## Goramoph's behavior
1. Parse `iTunes Music Library.xml`.
2. Parsing result is export to `./csv` as csv file.
* Csv file name is `./csv/.csv`
3. Upload csv file to `Google Cloud Storage`.
* Bucket name is `-csv`
4. Load csv file contents to `Google BigQuery` dataset and table.
* Dataset name is `_ds`
* table name is ``
5. Remove uploaded csv file.
## Notes
* `Google Cloud Storage` and `Google BigQuery` are require billing setting.
* Absolutely I do not know anything about your billing amounts.
## License
This software is released under the MIT License, see LICENSE.txt.