[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

I got bored today so I spent the past few hours writing a 4c

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 19
Thread images: 3

I got bored today so I spent the past few hours writing a 4chan browser for your terminal.

It's far from perfect and the output is very lacking, but the basics are there. Right now I'm making the output a little prettier and a little more informative.

If anyone has any feature requests or finds any bugs, please open an issue here: https://github.com/eon8ight/4chan-term
>>
File: maki is cute 623.png (1MB, 1200x1300px) Image search: [Google]
maki is cute 623.png
1MB, 1200x1300px
pretty cool, d00d! probably not something i'm going to use, but i'm working on something involving perl and the 4chan API so i'll definitely check out your code.
>>
Can you post with it?
>>
>>60305772
Unfortunately no. The 4chan API is read-only.
>>
Is that fucking Watashi
>>
>>60305895
How do apps like Clover submit a post? Genuinely curious.
>>
>>60305960
Not sure. Clover is open-source, so I'll take a look and see how they do it and see if I can implement it in my terminal viewer.
>>
>>60305439
This is really cool anon! Very neat!
>>
>>60305439
nice. how did you render the images in the terminal?
>>
>>60305439
good shit anon, now just implement posting with displaying legacy captcha in terminal and you've got something
>>
>>60306089
Any news on this?
>>
>>60305439

Are you still working on it?
>>
>>60306437
Perl calls img2txt (from caca-utils) on the image and prints the ANSI output.

>>60306463
Looks like it's ultimately a well-formed POST request. This might be useful: https://github.com/Floens/Clover/blob/5fbce3e31d86f543a4313079a155e1483d511b43/docs/4chan/gcaptcha.txt

>>60306663
I pushed a few changes to make threads and posts more readable. I'm going to bed so I'm going to make a few changes tomorrow. There's a problem with displaying posts I want to fix - the output gets piped to less, and when you hit q before all the posts in a thread or in the catalog have been loaded, it quits the entire script instead of the less instance.
>>
>>60306753
Addendum - here's what the output looks like now.
>>
>>60306753
>I'm going to make a few changes tomorrow.
I will lurk.
>>
>>60305439
really neat op
>>
>>60305439
Are you kidding me? I wanted to write such a thing as well, after I finished the Krautchan BBS. Holy shit. https://github.com/n4n0GH/KrautBBS
Good job though.
>>
It might be worth looking into sixels as a way to improve the image rendering, though this will only work on some terminals.

https://en.wikipedia.org/wiki/Sixel
>>
>>60305439
Looks pretty neat, you might be able to bypass the post capcha with a pass?

I'm not really sure how it would work though.
Thread posts: 19
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.