Skip to content

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

License

Notifications You must be signed in to change notification settings

piger/wikiquote2fortune

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages