How to Install "This Week in Past" on EndeavourOS Latest
"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.
Prerequisites
- Python 3.6 or higher
- Git installed on your system
- Basic command-line skills
Installation
Open up a terminal window on your EndeavourOS Latest system.
Install
pipby running the following command:sudo pacman -S python-pipInstall
virtualenvusingpip:sudo pip install virtualenvCreate a new virtual environment for "This Week in Past" using the following command:
virtualenv twip-envThis command will create a new directory named
twip-env.Activate the virtual environment:
source twip-env/bin/activateClone the "This Week in Past" repository using Git:
git clone https://github.com/RouHim/this-week-in-past.gitChange into the cloned directory:
cd this-week-in-pastInstall the required dependencies:
pip install -r requirements.txt
Usage
Activate the virtual environment:
source twip-env/bin/activateChange into the "This Week in Past" directory:
cd this-week-in-pastRun the script with the following command:
python3 twip.pyThe 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
Conclusion
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!