crawl images

0 Jimmy Rodriguez · January 30, 2016
How do I make a crawler to grab all images and save it to a file

Post a Reply

Replies

Oldest  Newest  Rating
0 sfolje 0 · January 31, 2016
Watch Bucky's python 3 tutorials - web crawler

import random
import urllib.request

def download_web_image(url):
  name = random.randrange(1, 1000)
  full_name = str(name) + '.jpg'
  urllib.request.urlretrieve(url, full_name)

download_web_image('https://www.thenewboston.com/photos/users/2/resized/23471ba4417d650505928a0b1f1fd8b1.jpg')
  • 1

Python

107,329 followers
About

This section is all about snakes! Just kidding.

Links
Moderators
Bucky Roberts Administrator