Giter Site home page Giter Site logo

image-crawler's People

Contributors

ayan-kumar-saha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

zhangchengtest

image-crawler's Issues

can you update not anymore working

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

Code does not work if images folder already exist.

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.