Open jad-b opened 8 years ago
After touching on this implementation this morning, I think modifying Gmail.list_messages
to be a generator will assist in this endeavour, as well as any other API calls that require iterating through paginated responses.
Background
Since we care about dynamic datasets, we need a way of pulling in changes. With Gmail being the only source, it's not so bad, but we should experiment with the required interface before we go to add web scraping.
Proposal
Standardize the data retrieval from a source behind an interface class.
Currently, only the Gmail source exists, so implementation will be easy.
Usage: