Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implements
get_IFW(#100) — a new method that retrieves the full Image File Wrapperand bulk-downloads all prosecution history documents (PDF preferred, DOCX fallback) into
either a ZIP archive or a flat directory. Returns a new
IFWResultdataclass with thePatentFileWrapper, the output path, and adownloaded_documentsmapping ofdocument_identifier → filenameso each downloaded file can be linked back to itsDocumentin the bag.Also includes several related improvements made during development:
get_IFW_metadatanow auto-populatesdocument_bagon the returned wrapper ([FEAT] get_IFW_metadata should also populate the Doc list #99)classification_qvalues containing spaces or slashes are now auto-quoted for theLucene query, fixing searches for CPC codes like
H10D 64/667([Bug]: classification_q requires manual quoting for CPC codes containing a slash #101)cpc_classification_bag([DOCS] Example how to search CPC codes #102)Type of Change
Testing
Checklist
Related Issues
Closes #100
Closes #99
Closes #101
Closes #102
Additional Notes
get_IFWsupports two output modes controlled byas_zip: bool = True:as_zip=True(default): all documents packaged into{app_no}_ifw.zipas_zip=False: documents downloaded into{app_no}_ifw/directoryDocuments with no PDF/DOCX download URL (e.g. NPL references) are silently skipped.
A warning is issued only if a document has a URL but the download itself fails.