An open API service indexing awesome lists of open source software.

https://github.com/plugarut/yam-py

Simple CLI interface for https://news.yam.md/
https://github.com/plugarut/yam-py

Last synced: 8 months ago
JSON representation

Simple CLI interface for https://news.yam.md/

Awesome Lists containing this project

README

          

yam-py
==========================
Simple CLI interface for https://news.yam.md/

## Usage

1. Clone the repo
```
git clone git@github.com:PlugaruT/yam-py.git
```
2. Nagivate inside the folder and install the module
```
python setup.py install
```
3. Enjoy 🌟

## Help
```
$ yam-py --help
Usage: yam-py [OPTIONS]

CLI interface for https://news.yam.md/

Options:
--source TEXT Source of the article used for article filtering.
--pages INTEGER Number of pages to fetch. Each page represents 30 more
articles.
--lang [ro|ru|en] Language to be used when fetching list of articles.
--help Show this message and exit.
```

### Sample Output
```
$ yam-py
14:10 https://news.yam.md/ro/s/8047573
14:10 <Școli și grădinițe din Moldova, fără specialiști # National4> https://news.yam.md/ro/s/8047591
14:10 https://news.yam.md/ro/s/8047595
14:10 https://news.yam.md/ro/s/8047596
14:10 https://news.yam.md/ro/s/8047597
14:10 https://news.yam.md/ro/s/8047598
14:10 https://news.yam.md/ro/s/8047599
14:10 <(FOTO) Efectele încălzirii globale: Prima navă port container a trecut cu succes prin ruta arctică # Cotidianul> https://news.yam.md/ro/s/8047600
14:10 https://news.yam.md/ro/s/8047601
14:10 https://news.yam.md/ro/s/8047602
14:10 https://news.yam.md/ro/s/8047603
14:10 https://news.yam.md/ro/s/8047604
14:10 https://news.yam.md/ro/s/8047605
14:10 https://news.yam.md/ro/s/8047606
14:10 https://news.yam.md/ro/s/8047607
14:15 <„Nu transformați cortegiile oficiale în cortegii funerare!” Asociația Tineri pentru dreptul la viață au lansat o petiție # #diez> https://news.yam.md/ro/s/8047616

```