chris-greening / instascrape

Powerful and flexible Instagram scraping library for Python, providing easy-to-use and expressive tools for accessing data programmatically
https://chris-greening.github.io/instascrape/
MIT License
633 stars 109 forks source link

Scrape Only Videos? #115

Closed boscacci closed 3 years ago

boscacci commented 3 years ago

Problem? I only need to download videos from IG, not photos. Is there a way I could skip photos while scraping?

Solution? Perhaps a parameter in get_posts or scrape_posts for video_only=True or comparable flag

Alternatives I've considered: https://github.com/drawrowfly/instagram-scraper — not super well maintained!

stefco commented 3 years ago

Use Post.is_video to check this. See this example linked in the readme.

boscacci commented 3 years ago

Thanks!