{"id":26231353,"url":"https://github.com/sainathadapa/reddit2mobi","last_synced_at":"2025-07-17T12:34:57.000Z","repository":{"id":22771583,"uuid":"26117520","full_name":"sainathadapa/reddit2mobi","owner":"sainathadapa","description":"Export a reddit post into a mobi/epub via html.","archived":false,"fork":false,"pushed_at":"2016-02-07T16:09:39.000Z","size":98,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-13T01:48:05.994Z","etag":null,"topics":["nodejs","reddit"],"latest_commit_sha":null,"homepage":"https://sainathadapa.github.io/blog/export-reddit-thread/","language":"HTML","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/sainathadapa.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}},"created_at":"2014-11-03T12:27:50.000Z","updated_at":"2024-12-12T13:18:07.000Z","dependencies_parsed_at":"2022-07-27T03:32:20.761Z","dependency_job_id":null,"html_url":"https://github.com/sainathadapa/reddit2mobi","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sainathadapa/reddit2mobi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sainathadapa%2Freddit2mobi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sainathadapa%2Freddit2mobi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sainathadapa%2Freddit2mobi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sainathadapa%2Freddit2mobi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sainathadapa","download_url":"https://codeload.github.com/sainathadapa/reddit2mobi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sainathadapa%2Freddit2mobi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265606727,"owners_count":23796998,"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":["nodejs","reddit"],"created_at":"2025-03-12T23:31:34.289Z","updated_at":"2025-07-17T12:34:56.979Z","avatar_url":"https://github.com/sainathadapa.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"reddit2mobi\n===========\n\nThis project helps to export a reddit post into a mobi/epub via html.\n\n# Instructions\n- Install [NodeJS](http://nodejs.org/) and [npm](https://www.npmjs.com/)\n- Clone this repo\n- `cd reddit2mobi; npm install`\n- Run _run_reddit2html.js_ script. \n\t- Pass the url of the reddit post as an argument. Optionally, pass the depth (integer) to limit the maximum depth of subtrees in the thread.\n  - Usage: `nodejs run_reddit2html.js url depth \u003e out.html`\n- Install [Calibre](http://calibre-ebook.com/download)\n- Convert the generated html into epub/mobi using the _ebook-convert_ from Calibre.\n  - Usage: `ebook-convert in.html out.mobi`\n\n# Other resources\n- See the example files to see the sample generated output.\n  - Example files are generated by these commands:\n  -  `nodejs run_reddit2html.js https://www.reddit.com/r/MachineLearning/comments/2fxi6v/ama_michael_i_jordan/ 10 \u003e example1.html`\n  -  `ebook-convert example1.html example1.mobi`\n  -  `nodejs run_reddit2html.js https://www.reddit.com/r/Android/comments/2jbt42/google_announces_android_50_lollipop 3 \u003e example2.html`\n  -  `ebook-convert example2.html example2.mobi`\n- [Reddit API](https://www.reddit.com/dev/api#GET_comments_{article})\n- [Ebook-convert](http://manual.calibre-ebook.com/cli/ebook-convert.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsainathadapa%2Freddit2mobi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsainathadapa%2Freddit2mobi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsainathadapa%2Freddit2mobi/lists"}