We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like to have the option for creating a valid pruned GTFS feed based on a partridge feed. I tried to use write_feed_dangerously, but:
write_feed_dangerously
Thanks
The text was updated successfully, but these errors were encountered:
Hi @cjer. I recommend using ptg.writers.extract_feed, instead of using write_feed_dangerously.
ptg.writers.extract_feed
inpath = 'mygtfs.zip' outpath = 'mygtfs-pruned.zip' agency_ids = ['2', '4'] ptg.writers.extract_feed(inpath, outpath, { {'routes.txt': {'agency_id': agency_ids}} }) feed = ptg.feed(outpath)
Does that work for your use case?
Sorry, something went wrong.
Hey! that seems to work great!
docs anyone? :)
I recently added extract_feed to the docs under "Extracting a new feed" in the Usage section: https://github.com/remix/partridge#usage.
extract_feed
No branches or pull requests
I would like to have the option for creating a valid pruned GTFS feed based on a partridge feed.
I tried to use
write_feed_dangerously
, but:Thanks
The text was updated successfully, but these errors were encountered: