Uploaded October 2019 | Updated December 2026, 14 hours ago
Let's download few thousand images from a website (in my example, real estate site) by Python just in one click.
In this video I explain how to download images from a list of URLs (CSV file) and save it to any folder on your computer very easily. Just write a simple Python code and run it.
For this I used following Python modules:
- pandas - for reading CSV file. Official documentation here: pandas.pydata.org
- urllib - for retrieving and save image by a given URL address. Official documentation here: docs.python.org/3/library/urllib.request.html#module-urllib.request
This Python script can be easily integrated in any web scraper. Just add one Python procedure, set global parameters (variables) and add to existing data mining algorithm.
Hoping it is useful for data scientists and analysis. Enjoy!
Vytautas.
#downloadimagespython
#pythonrealestate
#pythonautomation
Let's download few thousand images from a website (in my example, real estate site) by Python just in one click.
In this video I explain how to download images from a list of URLs (CSV file) and save it to any folder on your computer very easily. Just write a simple Python code and run it.
For this I used following Python modules:
- pandas - for reading CSV file. Official documentation here: pandas.pydata.org
- urllib - for retrieving and save image by a given URL address. Official documentation here: docs.python.org/3/library/urllib.request.html#module-urllib.request
This Python script can be easily integrated in any web scraper. Just add one Python procedure, set global parameters (variables) and add to existing data mining algorithm.
Hoping it is useful for data scientists and analysis. Enjoy!
Vytautas.
#downloadimagespython
#pythonrealestate
#pythonautomation








![Stop using range() for loops in Python. Use enumerate()
With this video I explain why in many cases we should use enumerate() instead of range() function in Python for loops.
The way of using range() is ugly: You either need a separate variable assignment to get the element or use a[i] all the time which could theoretically be an expensive operation. The point is that you generally dont want to use range(len(l)) when you want to iterate the elements of a list (although there may still be cases where it makes sense).
I think than enumerate is much more flexible and readable Python coding option than len(l) with range().
Thank you for watching. See you on other tutorials.
Vytautas.
#pythonfunctions
#pythonloops
#pythonbegineers Stop using range() for loops in Python. Use enumerate()](https://i.ytimg.com/vi/XUtAy9K0JSE/mqdefault.jpg)

