Skip to content
A scraper to find farmers markets from a wonky USDA supplied API.
Branch: trunk
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This is extracted from a project I was looking to work on, but scrapped due to lack of interest. The USDA Farmer's Market listing API is a rather old API, seemingly built for an era gone by. Included here is a scraper, written in Rust, that walks zip codes in America and polls the API for markets in that area, cleans the data (so that, for example, seasons and markets are corrected) and writes or updates the data in a postgres database of your choosing.

Database integration is done with Diesel, and should realistically only require properly configuring a .env. From there, you can cargo build or cargo build --release and run the resulting binary.


Do what you want with it. You're bound to not abuse the API if you opt to run this; the resulting binary is pre-configured to not overrun the API with requests, and I'd recommend not changing it from that.

You can’t perform that action at this time.