Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mplewis/yot
A CLI for browsing 4chan text posts.
https://github.com/mplewis/yot
Last synced: about 2 months ago
JSON representation
A CLI for browsing 4chan text posts.
- Host: GitHub
- URL: https://github.com/mplewis/yot
- Owner: mplewis
- Created: 2012-09-26T01:03:21.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-11-04T00:34:46.000Z (about 9 years ago)
- Last Synced: 2024-04-13T04:56:10.895Z (9 months ago)
- Language: Python
- Size: 320 KB
- Stars: 10
- Watchers: 6
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### This is unmaintained :(
I don't have time to maintain this project any more. If you'd like to build on what I have here, feel free!
I'm always available at [email protected] for questions.
# yot
*because console users need 4chan too*
Written for Python 2.
Allows you to browse the threads on the front page of any 4chan imageboard from a terminal. **Supports *ASCII art* images!**
usage: yot.py [-h] [-i] [-o] [-w WIDTH] [-t INDENT] [-r WH_RATIO] board
positional arguments:
board the abbreviation of the board to read (ex: r9k, g, tg)optional arguments:
-h, --help show this help message and exit
-i, --images enable ASCII image display (default: disabled)
-o, --op-only only show the first post of each thread on a board's
front page, instead of showing the first post and a
few replies (default: disabled)
-w WIDTH, --width WIDTH
set terminal width in chars for word wrap and ASCII
image display (default: 80 chars)
-t INDENT, --indent INDENT
set indent width in chars for thread replies (default:
8 chars)
-r WH_RATIO, --wh-ratio WH_RATIO
set width:height ratio of characters for ASCII image
display (default: 0.55)Make sure you copy `sampleConfig.yml` to `config.yml` so that you have a working default config file. Otherwise, yot will get mad at you when you run it without specifying every argument.
Python dependencies
===================
* [python-aalib](http://jwilk.net/software/python-aalib)
* [Python Imaging Library](http://www.pythonware.com/products/pil/)
* [argparse](http://docs.python.org/library/argparse.html)
* [OrderedDict drop-in](https://github.com/sprintly/ordereddict) (if Python version < 2.7)but why would you do this thing?
================================Because I love the terminal, and I love working with APIs, and I love the new 4chan API.
Feel free to send me a pull request if you come up with anything cool.