rohan-bhautoo / Python-Web-Scraper

A python web scaper to extract content and data from a website.
GNU General Public License v3.0
2 stars 2 forks source link

Download Image from URL #6

Closed rohan-bhautoo closed 1 year ago

rohan-bhautoo commented 1 year ago

Add option to download the images from the extracted URLs.

rohan-bhautoo commented 1 year ago

Test code from https://stackoverflow.com/questions/30229231/python-save-image-from-url

import requests

img_data = requests.get(image_url).content
with open('image_name.jpg', 'wb') as handler:
    handler.write(img_data)