Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/piger/wikiquote2fortune
This little script can create a fortune(6) file with quotes from a Wikiquote page.
https://github.com/piger/wikiquote2fortune
fortune fortune-cookies python python3 wikipedia wikipedia-api wikiquote
Last synced: about 5 hours ago
JSON representation
This little script can create a fortune(6) file with quotes from a Wikiquote page.
- Host: GitHub
- URL: https://github.com/piger/wikiquote2fortune
- Owner: piger
- License: other
- Created: 2013-07-26T12:35:11.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-05-29T08:48:25.000Z (over 1 year ago)
- Last Synced: 2024-04-22T15:43:57.104Z (7 months ago)
- Topics: fortune, fortune-cookies, python, python3, wikipedia, wikipedia-api, wikiquote
- Language: Python
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wikiquote2fortune
## What?
This little Python script can create a fortune(6) file with quotes from a
[Wikiquote](https://en.wikiquote.org/wiki/Main_Page) page; I've only
tested it on a few TV Show pages and the parser is not very robust.## How?
You can install it from source like every other Python package, running a command like:
```
$ python3 -m venv ./venv
$ . ./venv/bin/activate
$ python3 setup.py install
```## Example
To fetch and create a fortune file for Star Trek TNG:
```
$ wikiquote2fortune -o star_trek_TNG Star_Trek:_The_Next_Generation
$ strfile star_trek_TNG
```NOTE: the command `strfile` is part of the fortune package.