Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

How to programmatically download images from a link to a certain location?

Let's say that I have a HTML page which has images/videos in it. If I were to manually download it, I would open the source code, click on the link which leads to the .png file. Then I click on the download icon and choose where it has to be saved. Doing it once isn't that difficult but I have to download more than 50 such images from a website. The pattern to head over to the .png file is the same; it doesn't change. So how can I create an automated process for doing this? Which tool/language should I use?