downloading from links within a webpage

Rustom Mody rustompmody at gmail.com
Tue Oct 14 17:31:56 CEST 2014


On Tuesday, October 14, 2014 8:12:56 PM UTC+5:30, Shiva wrote:
> Hi,

> Here is a small code that I wrote that downloads images from a webpage url
> specified (you can limit to how many downloads you want). However, I am
> looking at adding functionality and searching external links from this page
> and downloading the same number of images from that page as well.(And
> limiting the depth it can go to)

> Any ideas?  (I am using Python 3.4 & I am a beginner)

> import urllib.request
> import re

Read this:
http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454



More information about the Python-list mailing list