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
630 stars 107 forks source link

Add load image from url #87

Open redrossa opened 3 years ago

redrossa commented 3 years ago

Hello! I'd like to add a simple feature of loading an image given the URL like load_image_file. What do you think?

stefco commented 3 years ago

Do Post.download or Post._download_photo solve your problem?

alizepistidda commented 2 years ago

There is an issue with post.download, see post . The header with the valid session ID that is created there should also be given to the requests.get statement inside Post.download, like this: resp = requests.get(url, stream=True, headers=headers)

Then the function will work without redirecting