Skip to main content
Topic: Artix News: Scraping  (Read 12827 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Artix News: Scraping

Hello!

I have a small contribution, which may be useful for someone here.

Sometimes I lost my X because a weird upgrade, would be nice if I can check the artix news to look if some breaking upgrade was released.

Because of that I made a scraper of Artix news page: https://github.com/ryukinix/artix-news.

It's mostly based on archnews python script (https://github.com/mjiricka/archnews/blob/master/archnews).
It's me. The only me.

Re: Artix News: Scraping

Reply #1
It works!
A couple of things I encountered that may be useful for installation by others -  to use pip install you have to first install the python-pip package from the repos. And I did not have .local/bin in PATH so I got a warning about that, and had to call it by it's full path to run it. Installing it without the --user option worked though.

And if you do
$ artix-news | less - R
 you can see it in less, but still keep the color display.


Re: Artix News: Scraping

Reply #2
Great!!! Thanks for testing it. I'll plan some additional documentation and I can make a AUR package if there is a need for it. There is a planned flag (artix-news -s) to add a brief summary of news: https://github.com/ryukinix/artix-news/issues/1

Which will make this result:

It's me. The only me.

 

Re: Artix News: Scraping

Reply #3
Very nice! Thanks for this!