piger / wikiquote2fortune

This little script can create a fortune(6) file with quotes from a Wikiquote page.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wikiquote2fortune

What?

This little Python script can create a fortune(6) file with quotes from a Wikiquote 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.

About

This little script can create a fortune(6) file with quotes from a Wikiquote page.

License:Other


Languages

Language:Python 100.0%