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
625 stars 109 forks source link

Cannot retreive video_url from post object #145

Closed code1dot closed 2 years ago

code1dot commented 2 years ago

Hello!

I am trying to retrieve a user's recent posts and get any videos that they have uploaded. My code checks to see if a post is a video by checking for post.is_video and then it attempts to retrieve the video url via post.video_url. However every time that I try and do so, Python says that the video_url parameter does not exist, even after running post.scrape(). It throws the error below:

AttributeError: 'Post' object has no attribute 'video_url'

Using post.download(PATH) also throws a similar error.

I have tried this on both the latest Github version and the latest PyPI version.

code1dot commented 2 years ago

Nevermind, I found out what it was and sent a fix via a Pull Request