Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HGrzywacz/rsp2k
Reddit self posts to kindle - early alpha.
https://github.com/HGrzywacz/rsp2k
Last synced: about 1 month ago
JSON representation
Reddit self posts to kindle - early alpha.
- Host: GitHub
- URL: https://github.com/HGrzywacz/rsp2k
- Owner: HGrzywacz
- Created: 2011-09-07T21:19:13.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-01-08T12:09:49.000Z (almost 12 years ago)
- Last Synced: 2024-08-01T16:43:17.077Z (4 months ago)
- Language: Python
- Homepage:
- Size: 1.92 MB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- my-awesome-github-stars - HGrzywacz/rsp2k - Reddit self posts to kindle - early alpha. (Python)
README
# rsp2k - Reddit Self Posts to Kindle
Inspired by Instapaper service this app is meant to be quick and
effective tool to get reddit (and maybe in future other services)
posts with comments, convert them to mobi format and optionally
mail ready mobi file to user's Kindle.For any questions or suggestions write me on [[email protected]](mailto:[email protected]).
Code is tested with Python v 3.2.
## Get\_top
Tool for making lists. It's called get top but it's for getting top, new, controversial and hot.
Interface is as simple as possible:$ get_top.py kindle 10 new
Gets ten newest submissions from r/kindle.
$ get_top.py 60 day askreddit
Gets 60 top (default action) from day from r/askreddit.
$ get_top.py controversial 321 all world_news
Gets 321 most controversial submissions of all time from r/world\_news.
As you can see order of arguments is irrelevant and none of them is mandatory! Just type out what you want.
If you ask me it's "don't make me think" rule personified (codified?).List will be seved with a proper name (that will be displayed) in current directory OR if you want
to lists/ folder - just create it.## Temporary testing
Mobi content file creation, opf, toc.html, toc.ncx from few .rhtml files I've prepared:
$ python test.py clean
$ python test.py test_mobiGetting posts with comments from reddit:
$ ./get_post.py
Name of created file will be printed
## Most important things to do:
* Fetching more comments than API returns in one response, as shown [here](https://github.com/reddit/reddit/wiki/API)
* Main script that links uses all the parts as one - option parser, Kindlegen runner.
* Mailing .mobi as attachment.