{"id":15831684,"url":"https://github.com/cleverdevil/switchpub","last_synced_at":"2025-04-01T17:32:32.257Z","repository":{"id":145921928,"uuid":"185447213","full_name":"cleverdevil/switchpub","owner":"cleverdevil","description":"Code that I use to publish my Nintendo Switch activity to my website via reverse engineering the Switch Parental Controls API.","archived":false,"fork":false,"pushed_at":"2019-05-07T17:19:00.000Z","size":3,"stargazers_count":35,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-12T12:31:49.125Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cleverdevil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-07T17:18:32.000Z","updated_at":"2023-08-19T21:30:46.000Z","dependencies_parsed_at":"2023-04-09T19:03:43.182Z","dependency_job_id":null,"html_url":"https://github.com/cleverdevil/switchpub","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"fe44aaabb7fec91db4e1cb61b214debf7bb6d8e6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleverdevil%2Fswitchpub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleverdevil%2Fswitchpub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleverdevil%2Fswitchpub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleverdevil%2Fswitchpub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cleverdevil","download_url":"https://codeload.github.com/cleverdevil/switchpub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222743968,"owners_count":17031128,"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":[],"created_at":"2024-10-05T12:06:02.295Z","updated_at":"2024-11-02T17:02:20.630Z","avatar_url":"https://github.com/cleverdevil.png","language":"Python","readme":"Switchpub\n=========\n\nThis is code that I use on [my website](https://cleverdevil.io) to publish daily\nrecords of my gaming sessions on my Nintendo Switch. To create this code, I\nneeded to reverse engineer the API used by the\n[Nintedo Switch Parental Controls app for iOS](https://itunes.apple.com/us/app/nintendo-switch-parental-cont/id1190074407).\n\nIn order for these scripts to talk to the API, a number of variables will need\nto be discovered, including your device identifier, \"smart\" device identifier,\nclient identifier, and a session token. The best way to get these is to download\nthe parental controls app to an iOS device, and then to set up a network proxy\nto inspect the traffic that the app sends during authentication. I personally\nused [Charles Proxy](https://www.charlesproxy.com) for this purpose, which\nprovides the necssary [MITM\nproxy](https://www.charlesproxy.com/documentation/proxying/ssl-proxying/)\nfeatures. \n\nOnce you've got things configured properly in `conf.py`, you can first run\n`fetch.py`, which will write out a `summary.json` file. Then, you can run\n`process.py`, which will require some light editing for your use case.\nCurrently, `process.py` has some hardcoded variables that are specific to my\nwebsite. In addition, `process.py` is hardcoded to publish to my website through\nmy own custom webhook. You may want to use something like Micropub.\n\nNote: all of this was inspired by [Eddie Hinkle](https://eddiehinkle.com), who\ndid this first!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleverdevil%2Fswitchpub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcleverdevil%2Fswitchpub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleverdevil%2Fswitchpub/lists"}