Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.25 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.25 KB

Freedom of Information Request Archive Bot

The goal of this simple python script is to permanently archive Freedom of Information Requests from Right to Know on the Internet Archive's Wayback Machine

There is a lot to be added to the script, feel free to contribute! 👍

Installation

⚠ Python v2.7 is required

You will need the following python packages installed: requests, archiveis, stem

pip install -r requirements.txt

Usage

usage: FOI_Archive_Bot.py -s from_request -e to_request -r retries -l log_urls_to_file.txt

arguments:
  -h, --help            show this help message and exit
  -s from_request, --start from_request
                        FOI request number to start archiving from (default=1)
  -e to_request, --end to_request
                        FOI request number to stop archiving at (default=5000
  -r retries, --retries retries
                        set max number of retries when bot encounters a
                        connection error (default=3)
  -l log_urls_to_file, --log log_urls_to_file
                        log archived urls to a file

Example output

Archives FOI requests

License

GNU GPLv3