instascrape icon indicating copy to clipboard operation
instascrape copied to clipboard

Add load image from url

Open redrossa opened this issue 3 years ago • 2 comments

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

redrossa avatar Feb 08 '21 19:02 redrossa

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

stefco avatar Jun 19 '21 06:06 stefco

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

alizepistidda avatar Oct 27 '21 17:10 alizepistidda