Retrieve events that happened on current day
Project description
onthisday
Simple library that retrieves the historical events that happened on current day.
At the moment the events do not include birth/death of famous people.
Event sources
Install
pip install onthisday
Usage
As a standalone script
In the root directory:
> python -m onthisday --help
Usage: main.py [OPTIONS] COMMAND [ARGS]...
Commands:
all Print all the events of today
last Print last n events of today
list List the available sources (valid shorter names in brackets)
random Print random event of today
For the specific command options:
> python -m onthisday all --help
Usage: main.py all [OPTIONS]
Print all the events of today
Options:
--source TEXT [default: wiki]
--help Show this message and exit.
As a library
see the example file provided
Issues
Please open issue on this GitHub repository for any error, suggestion or feature request.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
onthisday-1.0.1.tar.gz
(4.1 kB
view hashes)