Post number #74797, ID: 33cf0a
|
Hey I'm currently learning C and one of my (future) goals would be create some sort of ncurses irssi-like client for this textboard. Any pointers for a noob?
Post number #74811, ID: 1bfd07
|
Canibalising the internals of Lynx and/or w3m text browsers could be a start. I am very mediocre as a C programmer but that is where Id start.
Post number #76550, ID: 1f67ea
|
I disagree with >>74811 i'd just scrape the site using a simple html parser, no need for the complexity.
##Admin:prefetcher##
Post number #76599, ID: fa54c8
|
https://github.com/dangeru/awoo-API
Post number #76617, ID: 859030
|
"don't @ me about programming unless you tweet from the command line"
Post number #76959, ID: 8bb90c
|
>>76617 now that is cyberpunk
Post number #77167, ID: 13bc40
|
this is a test using danger/u/ through terminal by using the text based browser "lynx" so if you can read this probably other terminal based browsers may also work here ;-)
Post number #77199, ID: 13bc40
|
https://en.wikipedia.org/wiki/Text-based_web_browser as you could see lynx worked like a charm. You have to handle Key-Shorcuts and cookie warnings :-)
Post number #77528, ID: 86eaf7
|
>>76550 Anon said he is learning C and has thought about a way to make the process fun and attractive and transforming study into enjoyful play. There is no best way to learn than looking at something that works and understanding how and why it does so and then trying to mimic it. A text scrapper does nothing towards that goal. Slight problem would be that lynx or w3m code is quite robust and complicated and stable and daunting. It could be scary swimming in industrial grade code.
Post number #77550, ID: 18f661
|
Post number #77652, ID: c7bbb3
|
C isn't a great choice for something like this. The boilerplate of config/option parsing and string-handling and ncurses for something that's solely text-wrangling isn't worth it, and you'll run out of steam
Post number #79352, ID: 88d37b
|
>>77652 so what language would be a good fit for this idea? I'll still continue learning C anyways.
Post number #79360, ID: 162697
|
>>79352 There's Python, which can parse JSON easily (assuming you plan on using the API and not stupidly parsing the site's HTML file). Really though, as long as it can parse JSON, you'll better off using the API.
Post number #80583, ID: 88d37b
|
>>79360 I'll get around to python eventually, thanks for the info!
Post number #81699, ID: 123a6a
|
In case you're interested I already made a python wrapper for the API with my client https://github.com/sugoiuguu/awoo-cli
Post number #81967, ID: 7f8f23
|
>>74797 scrape the site and use sed to format the text. All can be done in one command
Total number of posts: 16,
last modified on:
Sat Jan 1 00:00:00 1514142276
| Hey I'm currently learning C and one of my (future) goals would be create some sort of ncurses irssi-like client for this textboard.
Any pointers for a noob?