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/
- Host: GitHub
- URL: https://github.com/plugarut/yam-py
- Owner: PlugaruT
- License: mit
- Created: 2018-09-27T10:16:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-27T11:54:07.000Z (over 7 years ago)
- Last Synced: 2025-06-04T07:24:09.749Z (about 1 year ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```