tux icon indicating copy to clipboard operation
tux copied to clipboard

Distro watch "integration"

Open kzndotsh opened this issue 1 year ago • 6 comments

How could we implement a distro watch command to pull info about various distros? What info is available to use? Do they have an api? Would we need to scrape? Let's brainstorm!

https://distrowatch.com/

kzndotsh avatar Apr 02 '24 14:04 kzndotsh

https://www.reddit.com/r/linuxquestions/comments/emvgdw/distrowatch_api/

https://github.com/Zzzul/diwa

https://github.com/sxiii/distrowatch-scraper

https://pypi.org/project/distrowatchapi/

https://www.postman.com/lunar-star-949386/workspace/shub-s-public-workspace/documentation/967908-be493a6f-ed95-4298-b410-5c453a673c6f

https://github.com/jamezrin/distrowatch-parser

kzndotsh avatar Apr 02 '24 15:04 kzndotsh

the scraper is probably the WTG here, but only issue is where would it be put and how much space would it take..

basil-squared avatar Apr 02 '24 15:04 basil-squared

probably going to be slow as hell and we would have to run it fairly often, also distrowatch may block our server ip or some of our developers ips

electron271 avatar Apr 02 '24 16:04 electron271

Interesting project https://github.com/devnyxie/distro-api

Added some other parsers/scrapers/unofficial apis tho above, worth looking thru them all.

kzndotsh avatar Apr 02 '24 16:04 kzndotsh

one thing i think would be cool but (probably) unfeasable due to colors and stuff.. using like neofetch style ascii art

basil-squared avatar Apr 02 '24 17:04 basil-squared

Use the distrowatch API but cache the 5 results of one day, and take from the cache instead. this should mean that there won't be that many hits on the API, since considering the scope of the bot, there is an extremely slim chance anybody tries more than those 5 cached results of the day.

HikariNee avatar Apr 10 '24 05:04 HikariNee