Skip to content

FOI Archive Bot archives Freedom of Information Requests from RightToKnow.org.au on the Wayback Machine

License

Notifications You must be signed in to change notification settings

snehankekre/FOI-Archive-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

FOI Archive Bot archives Freedom of Information Requests from RightToKnow.org.au on the Wayback Machine

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages