"This Week in Past" is a Python script that downloads articles from Wikipedia's "On This Day" page and generates a weekly summary report. In this tutorial, we will guide you through the process of installing and using this script on EndeavourOS Latest.
Open up a terminal window on your EndeavourOS Latest system.
Install pip
by running the following command:
sudo pacman -S python-pip
Install virtualenv
using pip
:
sudo pip install virtualenv
Create a new virtual environment for "This Week in Past" using the following command:
virtualenv twip-env
This command will create a new directory named twip-env
.
Activate the virtual environment:
source twip-env/bin/activate
Clone the "This Week in Past" repository using Git:
git clone https://github.com/RouHim/this-week-in-past.git
Change into the cloned directory:
cd this-week-in-past
Install the required dependencies:
pip install -r requirements.txt
Activate the virtual environment:
source twip-env/bin/activate
Change into the "This Week in Past" directory:
cd this-week-in-past
Run the script with the following command:
python3 twip.py
The script will download the articles from Wikipedia and generate a report for the past week. The report will be saved in output/
directory.
To exit the virtual environment, run:
deactivate
Congratulations! You have successfully installed "This Week in Past" on your EndeavourOS Latest system. You are now ready to generate weekly reports of historical events. Happy scripting!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!