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

Installation

  1. Open up a terminal window on your EndeavourOS Latest system.

  2. Install pip by running the following command:

    sudo pacman -S python-pip 
    
  3. Install virtualenv using pip:

    sudo pip install virtualenv 
    
  4. 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.

  5. Activate the virtual environment:

    source twip-env/bin/activate 
    
  6. Clone the "This Week in Past" repository using Git:

    git clone https://github.com/RouHim/this-week-in-past.git 
    
  7. Change into the cloned directory:

    cd this-week-in-past 
    
  8. Install the required dependencies:

    pip install -r requirements.txt 
    

Usage

  1. Activate the virtual environment:

    source twip-env/bin/activate 
    
  2. Change into the "This Week in Past" directory:

    cd this-week-in-past 
    
  3. Run the script with the following command:

    python3 twip.py 
    
  4. The script will download the articles from Wikipedia and generate a report for the past week. The report will be saved in output/ directory.

  5. 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!

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!