{"id":13581507,"url":"https://github.com/jpathy/google-myactivity","last_synced_at":"2025-04-06T10:32:32.204Z","repository":{"id":144210249,"uuid":"111171103","full_name":"jpathy/google-myactivity","owner":"jpathy","description":"Manage google myactivities (http://myactivity.google.com/) and cmdline Google Music listen history fetcher","archived":true,"fork":false,"pushed_at":"2019-04-14T07:07:06.000Z","size":18,"stargazers_count":24,"open_issues_count":0,"forks_count":11,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-05T21:44:42.470Z","etag":null,"topics":["api","gmusic","myactivity"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpathy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-11-18T02:52:17.000Z","updated_at":"2024-09-05T14:44:27.000Z","dependencies_parsed_at":"2024-01-16T20:56:33.080Z","dependency_job_id":null,"html_url":"https://github.com/jpathy/google-myactivity","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpathy%2Fgoogle-myactivity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpathy%2Fgoogle-myactivity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpathy%2Fgoogle-myactivity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpathy%2Fgoogle-myactivity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpathy","download_url":"https://codeload.github.com/jpathy/google-myactivity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247470354,"owners_count":20944146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","gmusic","myactivity"],"created_at":"2024-08-01T15:02:03.853Z","updated_at":"2025-04-06T10:32:31.834Z","avatar_url":"https://github.com/jpathy.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/jpathy/google-myactivity.svg?branch=master)](https://travis-ci.org/jpathy/google-myactivity)\n[![Documentation](https://godoc.org/github.com/jpathy/google-myactivity?status.svg)](https://godoc.org/github.com/jpathy/google-myactivity)\n\nAbout\n=====\nProvides a library to fetch entries from [Google Myactivity](https://myactivity.google.com) and a utility program to fetch google music listen history.\n\nInstall\n=======\n`go get -u github.com/jpathy/google-myactivity/gmusic_activity`\n\nNeeds sqlite3 library installed.\n\nUsage\n=====\nNeeds Google chrome/chromium with [Chrome DevTools Protocol](https://chromedevtools.github.io/devtools-protocol) support. Additionally the `user-data-dir` provided must have logged in session to google account. If using default `user-data-dir` (absence of the flag), no instance of chrome should be running without debugging-port.\n\n    $ gmusic_activity --help\n    NAME:\n       gmusicactivity - Manage google music activities\n\n    USAGE:\n       gmusic_activity [global options] command [command options] [arguments...]\n\n    VERSION:\n       0.1.0\n\n    COMMANDS:\n         get, g   Fetch activities related to google music and write to stdout\n         help, h  Shows a list of commands or help for one command\n\n    GLOBAL OPTIONS:\n       --chrome-path value     Google chrome executable path\n       --user-data-dir value   Google chrome user data directory\n       --debugging-port value  Google chrome debugging port to listen on\n       --timeout value         Specify a timeout in seconds; 0 means wait until done (default: 0)\n       --help, -h              show help\n       --version, -v           print the version\n\n    $ gmusic_activity get --help\n    NAME:\n       gmusic_activity get - Fetch activities related to google music and write to stdout\n\n    USAGE:\n       gmusic_activity get [command options] [arguments...]\n\n    OPTIONS:\n       --file FILE   write results to FILE sqlite db instead of stdout\n       --all         Fetches all activities; Default behaviour is to fetch new activities since last fetch present in DB(if --file not given this flag does nothing)\n       --from value  Unix epoch in milliseconds to fetch activities from (default: 0)\n       --to value    Unix epoch in milliseconds to fetch activities upto (default: 0)\n\nExample\n=======\n    $ gmusic_activity --timeout 20 g --from 1510255950000\n    Listened to Yeha-Noha (Wishes Of Happiness And Prosperity) (Mendelsohn Edit) by Sacred Spirit on Sat, 11 Nov 2017 07:11:34 IST\n    Listened to Lacrimosa - Day of Tears by Zbigniew Preisner on Sat, 11 Nov 2017 07:07:03 IST\n    Listened to Sweet Rain by Bill Douglas on Sat, 11 Nov 2017 07:02:56 IST\n    Listened to Dekalog I - Part 5 by Zbigniew Preisner on Sat, 11 Nov 2017 06:58:22 IST\n    Listened to The Primal Gods by Dagda on Sat, 11 Nov 2017 06:50:39 IST\n    Listened to Adiemus: Cantus inaequalis by Adiemus on Sat, 11 Nov 2017 06:48:18 IST\n    ...\n\nSqlite Schema\n=============\n    sqlite\u003e .schema gmusic_listens\n    CREATE TABLE gmusic_listens(id INTEGER PRIMARY KEY, track TEXT NOT NULL, artist TEXT, UNIQUE(track, artist) ON CONFLICT IGNORE);\n    CREATE INDEX gmusic_track_idx ON gmusic_listens(track);\n    CREATE INDEX gmusic_artist_idx ON gmusic_listens(artist);\n    sqlite\u003e .schema gmusic_listens_timestamp\n    CREATE TABLE gmusic_listens_timestamp(time INTEGER NOT NULL, listens_id REFERENCES gmusic_listens(id) ON DELETE CASCADE ON UPDATE CASCADE, UNIQUE(time, listens_id) ON CONFLICT IGNORE);\n    CREATE INDEX gmusic_listens_ts_idx ON gmusic_listens_timestamp(listens_id);\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpathy%2Fgoogle-myactivity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpathy%2Fgoogle-myactivity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpathy%2Fgoogle-myactivity/lists"}