Skip to content

Example of querying the FOIArchive REST API via a Python program

License

Notifications You must be signed in to change notification settings

history-lab/foiarchive-api-python-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

foiarchive-api-python-example

Example of querying the FOIArchive REST API via a Python script and notebook:

To run the script on a computer with git and Python3 installed:

  1. Clone this repo: git clone https://github.com/history-lab/foiarchive-api-python-example.git
  2. Move to the newly created directory: cd foiarchive-api-python-example
  3. (Recommended) create a new virtual environment: python3 -m venv env
  4. (Recommended) activate the new virtual environment: . env/bin/activate
  5. Install the required libraries (requests and pandas): pip install -r requirements.txt
  6. Run the script: python ex.py
  7. Try processing the resulting DataFrame or altering the query

To launch the notebook, click: Colab

About

Example of querying the FOIArchive REST API via a Python program

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published