Skip to content
/ foiatool Public

Tools for working with government FOIA portals (NextRequest, GovQA)

Notifications You must be signed in to change notification settings

danem/foiatool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FOIATool

Tool for journalists, researchers, and concerned citizens to gather documents from NextRequest based FOIA portals. You can use this tool to periodically search for and download documents related to topics of interest.

Installation
python3 -m pip install .
Basic Usage

Generate a config file:

foiatool init

Edit the config file foia/foiatool.toml:

db_path = "foia.db"

[[request_config]]
url = "https://sanfrancisco.nextrequest.com"
user = "<USER NAME>"
password = "<PASSWORD>"
search_terms = ["police"]
document_search_terms = ["budget"]
ignore_ids = ["123"]
download_timeout = 1200
download_nice_seconds = 2
download_path = "downloads"

[[request_config]]
url = "https://another_site.nextrequest.com"
user = "<USER NAME>"
password = "<PASSWORD>"
search_terms = []
document_search_terms = []
ignore_ids = []
download_timeout = 1200
download_nice_seconds = 2
download_path = "downloads"

Paths can be specified as absolute or relative paths.

Run downloader:

foiatool 
Example FOIA Portals
Future
  • Support GovQA based portals
  • Enable multi-threaded downloading
  • Provide an easy cross-platform way to schedule the tool
Requirements
  • peewee
  • requests

About

Tools for working with government FOIA portals (NextRequest, GovQA)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages