项目作者: piger

项目描述 :
This little script can create a fortune(6) file with quotes from a Wikiquote page.
高级语言: Python
项目地址: git://github.com/piger/wikiquote2fortune.git
创建时间: 2013-07-26T12:35:11Z
项目社区:https://github.com/piger/wikiquote2fortune

开源协议:Other

下载


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:

  1. $ python3 -m venv ./venv
  2. $ . ./venv/bin/activate
  3. $ python3 setup.py install

Example

To fetch and create a fortune file for Star Trek TNG:

  1. $ wikiquote2fortune -o star_trek_TNG Star_Trek:_The_Next_Generation
  2. $ strfile star_trek_TNG

NOTE: the command strfile is part of the fortune package.