Python TrailForks Library (Unofficial) for interacting with TrailForks. Help support this project and more.
This package uses the Official TrailForks API. This means that in order to use this package, you must have a valid TrailForks app_id
and app_secret
. See the API link to get your keys.
PyForks has been designed to help me automate much of the manual data aggregation I was doing in order to build metrics for my local city and state trail systems. For example: app.mn-mtb.com.
- Install:
pip install pyforks
- Documentation: PyForks.mn-mtb.com
Get Information on a region
from PyForks import Region, Trails, Events
app_id = "id"
app_secret = "secret"
west_lake_marion_region_id = 20367
region = Region(app_id=app_id, app_secret=app_secret)
r_data = region.get_region(west_lake_marion_region_id)
There's a ton of opportunity to help if you're interestined:
- Create all the pull requests you want to PyForks
- We also have a website (Node, backend Python API): app.mn-mtb.com
- AWS Infrastructre (terraform).