Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Thats really cool. Throw it on git bud, we'll give ya a hand. Post the link in here.
-
MaccaMc5538yLooks really interesting but the ASCII art thing doesn't work great for complex photos like the one in your screenshot, alters the context of the post haha
-
@MaccaMc haha yeah. It needs some tweaking I guess. Will dive into that when I got some free time.
-
MaccaMc5538y@CanNuhlar Yeah, don't get me wrong though, really interesting project. Keep us updated :)
-
Kami688y@CanNuhlar are you French ? A "canular" (same phonetic) here is a kind of joke so your nickname made me laught
-
Posting this update from terminal :P Added login option, up/down vote, add comments, search, browsing individual rants. Didn't realize that devRant had a beautiful API, I'll probably gonna dump bs4 and parse API only in the future. Pushing changes to git now!
-
Boy oh boy this is awesome. Will contribute to this repo as soon as my holidays gets over in few days ✌️
-
Wait have people not seen libcaca? It converts any image to colored ascii art (terminal escape colors). There's even a cacaview tool that lets you zoom to get more detail and change the dithering and gamma at runtime. It can be used as a native rendering mode for mpv - so you can just run mpv --vo=caca http://YouTube.com/hAsHN4m3 to watch a YouTube vid in the terminal. Posting gif soon.
-
@thejohnhoffer For the lynx browser, there are no inline images, but you can view them as links like this:
-
@varundey @CanNuhlar @provector @reduxtris @dfox @paradonym hey collaborators: this problem has been solved in one way by lynx+libcaca and mpv+libcaca as shown above. I think we should use cacaview to render color images in a full screen interactive viewer. We should also use mpv+libcaca to display the gifs in the same kind of viewer. IMHO, we should value interactive over inline viewing, but it's possible to allow interactive inline images. I've just looked at a lot of images this way over ssh into my work machine, and with the low resolution it's so helpful to be able to zoom in and change brightness and contrast levels.
-
@thejohnhoffer here's a good example where the part of the image we care about is too white, so we need to darken it, zoom in and set the dithering to be less colorful.
-
Just for fun, on the left is the "ascii" art library libcaca run on an edge-filtered image. On the right might be more of what you'd expect from "ascii art", but I just made it by hand really quickly, and I think you can see how it's likely a viewer that does that sort of thing automatically would be less useful than the more photorealistic rendering. But it may be interesting to see such a viewer in action.
-
@thejohnhoffer ALSO... total moonshot would be optical character recognition that shows actual ASCII text for the words in devrant's screengrabs, memes or comics OVERLAYED atop an ASCII rendering of the source images or gifs.
-
@thejohnhoffer but there's none of the API functionality @CanNuhlar made use of for DevRant's "native python app". I.e., with lynx you can't reply, ++, --, or report rants.
-
Hey guys, I was a little busy with my life this week but managed spend some time on it. Added some more features and will probably update tomorrow. I will look into ascii art thing in more depth too.
-
@dfox hey! https://devrant.io/api/users/... seems to return Bad Request sometimes. Any idea why? Parameters I'm using token_id, token_key, user_id, last_time=0, app=3, plat=3. And do you have a API link for the feed itself? I couldn't find it.
-
Qchmqs5378yas much as i feel like this would be better with ncurses as a native binary xD I'm too lazy to do it, kodus for you
-
dfox428268y@CanNuhlar sorry for the slow response - I missed your question the first time around.
That looks correct - how often was it returning bad request? It definitely shouldn't during normal use and I don't think that endpoint has failed a lot in the past.
Any additional details would be appreciated.
Related Rants
I just started working on a little project to browse devrant from terminal. It converts images to ascii art!
undefined
python
asciiart
whaaaa