ayan-kumar-saha / image-crawler Goto Github PK
View Code? Open in Web Editor NEWAn image scraper that scraps images from unsplash.com
An image scraper that scraps images from unsplash.com
can you update not anymore working
(venv) F:\image-crawler>python image_crawler.py
Enter the image subject you want to download: 100
Number of images you want to download: 100
F:\image-crawler\image_crawler.py:20: DeprecationWarning: headless property is deprecated, instead use add_argument('-headless')
options.headless = True
Openning Firefox...
Traceback (most recent call last):
File "F:\image-crawler\image_crawler.py", line 26, in
browser = webdriver.Firefox(options = options)
File "F:\image-crawler\venv\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 196, in init
self.service.start()
File "F:\image-crawler\venv\lib\site-packages\selenium\webdriver\common\service.py", line 100, in start
self.assert_process_still_running()
File "F:\image-crawler\venv\lib\site-packages\selenium\webdriver\common\service.py", line 113, in assert_process_still_running
raise WebDriverException(f"Service {self._path} unexpectedly exited. Status code was: {return_code}")
selenium.common.exceptions.WebDriverException: Message: Service .\geckodriver.EXE unexpectedly exited. Status code was: 64
While running the code more than once, it fails if the images
folder already exists.
Expected behaviour:
Should re-run without any issues.
Current behaviour:
Throws this error on re-run
Traceback (most recent call last):
File "image_crawler.py", line 52, in <module>
os.mkdir('images')
FileExistsError: [Errno 17] File exists: 'images'
You may want to fix this. Great work though!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.