allthingslinux / tux

Tux is an all in one bot for the All Things Linux discord server.
https://discord.gg/linux
GNU General Public License v3.0
20 stars 8 forks source link

Distro watch "integration" #127

Open kzndotsh opened 3 months ago

kzndotsh commented 3 months ago

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 commented 3 months ago

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

FluxC0 commented 3 months ago

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

electron271 commented 3 months ago

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

kzndotsh commented 3 months ago

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

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

FluxC0 commented 3 months ago

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

HikariNeee commented 3 months ago

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.