Medias Iterators (instalooter.medias)

Iterators over Instagram medias.

Iterators defined in this module wrap PageIterator instances to yield individual medias defined in each page instead of whole pages.

class instalooter.medias.MediasIterator(page_iterator)[source]

Bases: Iterator[Dict[str, Any]]

An iterator over the medias obtained from a page iterator.

__next__()[source]

Return the next item from the iterator. When exhausted, raise StopIteration

class instalooter.medias.TimedMediasIterator(page_iterator, timeframe=None)[source]

Bases: Iterator[Dict[str, Any]]

An iterator over the medias within a specific timeframe.

__next__()[source]

Return the next item from the iterator. When exhausted, raise StopIteration