colrev.ops.search_api_feed.SearchAPIFeed
- class colrev.ops.search_api_feed.SearchAPIFeed(*, source_identifier, search_source, update_only, logger, prep_mode=False, verbose_mode=False, records=None)[source]
Bases:
objectA feed managing results from API searches.
Initialize the instance.
Methods
add_record_to_feedAdd or update the feed entry without updating the primary record.
add_update_recordUpdate the feed and, outside prep mode, the corresponding primary record.
get_last_updatedGet the last updated timestamp.
get_prev_feed_recordGet the previous record dict version.
get_recordsGet the prepared (primary) records.
saveSave the feed file and records, printing post-run search infos.
Attributes
source_identifierGet the source identifier.
- add_record_to_feed(record, prev_feed_record)[source]
Add or update the feed entry without updating the primary record.
- Return type:
bool
- add_update_record(retrieved_record)[source]
Update the feed and, outside prep mode, the corresponding primary record.
- Return type:
bool
- save(*, skip_print=False)[source]
Save the feed file and records, printing post-run search infos.
- Return type:
None
- property source_identifier: str
Get the source identifier.