instagram_extractor#

Submodules#

Package Contents#

class instagram_extractor.InstagramExtractor#

Bases: auto_archiver.core.Extractor

Uses Instaloader to download either a post (inc images, videos, text) or as much as possible from a profile (posts, stories, highlights, …)

valid_url#
post_pattern#
profile_pattern#
setup() None#
download(item: auto_archiver.core.Metadata) auto_archiver.core.Metadata#

Downloads the media from the given URL and returns a Metadata object with the downloaded media.

If the URL is not supported or the download fails, this method should return False.

download_post(url: str, post_id: str) auto_archiver.core.Metadata#
download_profile(url: str, username: str) auto_archiver.core.Metadata#
process_downloads(url, title, content, date)#