Skip to content
New issue

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

Build a NextRequest platform library #84

Open
1 task
stucka opened this issue Aug 19, 2024 · 1 comment · May be fixed by #105
Open
1 task

Build a NextRequest platform library #84

stucka opened this issue Aug 19, 2024 · 1 comment · May be fixed by #105
Assignees
Labels
enhancement New feature or request platform If the agency uses a platform use this label in addition to platform-specific label

Comments

@stucka
Copy link
Contributor

stucka commented Aug 19, 2024

Minimum implementation might be something like this:

Given a link to a NextRequest documents folder, return a proposed filename and the JSON contents

Given a base NextRequest URL and a NextRequest JSON filename, return a list of Metadata objects ready for parsing

A wrapper to handle both of the above -- given a base filepath and a URL, download file if needed to the proper path and parse the contents to generate the Metadata objects. Should include an option to overwrite files if they already exist.

This should reuse functions in cache.py and if necessary utils.py for filehandling.

@stucka stucka self-assigned this Aug 19, 2024
@stucka
Copy link
Contributor Author

stucka commented Aug 23, 2024

There may be multiple versions of these nextrequest sites, and definitely syntax differences.

Looking at a BART example:

Absolutely need to build in pagination; this thing has more than 1,100 files, vs. a pagination limit of 50.

One uses folder_id and one uses request_id.

Checking to see if "http" is in a URL isn't a foolproof method, as this redirects to a // AWS entry. Perhaps there's a test in urlparser that's less hacky?

@newsroomdev newsroomdev added the platform If the agency uses a platform use this label in addition to platform-specific label label Aug 30, 2024
@newsroomdev newsroomdev added the enhancement New feature or request label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request platform If the agency uses a platform use this label in addition to platform-specific label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants