Closed jacksonw765 closed 3 years ago
Hello Jackson!
get_recent_posts
returns an unscraped Post
object so all you have to do is call scrape
on x
before using the download
method. Thanks for pointing this ambiguity out! I will make this exception clearer for future users, your contribution is greatly appreciated :smile:
i.e.
google_hashtag = Hashtag('https://www.instagram.com/explore/tags/google/')
google_hashtag.scrape()
for x in google_hashtag.get_recent_posts():
x.scrape() #Call scrape on x before downloading
if x['is_video'] is True:
x.download('tmp.mp4')
break
Sorry about that! Thank you for the help. I couldn't find anything mentioned about this in the doc and it worked with photos so I thought I was doing something wrong. Appreciate it.
When I run this code.
I get this error. I am testing to try and download a video from instagram. Any assistance would be appreciated. It works fine when downloading images.