Giter VIP home page Giter VIP logo

facecrawler's People

Contributors

dansuh17 avatar daram529 avatar dependabot[bot] avatar hyunjongl avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

daram529

facecrawler's Issues

Error Tracebacks

Traceback (most recent call last):
  File "crawler.py", line 219, in <module>

    crawler.crawl_loop()  # begin crawl loop
  File "crawler.py", line 184, in crawl_loop
    image_src = self.find_next_img()
  File "crawler.py", line 176, in find_next_img
    return img_elem.get_attribute('src')
  File "/Users/Hyunjong/projects/facecrawler/crawl/lib/python3.6/site-packages/selenium/webdriver/remote/webelement.py", line 140, in get_attribute
    self, name)
  File "/Users/Hyunjong/projects/facecrawler/crawl/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 532, in execute_script
    'args': converted_args})['value']
  File "/Users/Hyunjong/projects/facecrawler/crawl/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 297, in execute
    self.error_handler.check_response(response)
  File "/Users/Hyunjong/projects/facecrawler/crawl/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: The element reference of <img class="_2di5p"> stale: either the element is no longer attached to the DOM or the page has been ref
reshed

Traceback (most recent call last):
  File "crawler.py", line 219, in <module>
    crawler.close()  # probably won't happen...
  File "crawler.py", line 183, in crawl_loop
    image_src = self.find_next_img()
  File "crawler.py", line 175, in find_next_img
    return img_elem.get_attribute('src')
  File "/Users/Hyunjong/projects/facecrawler/crawl/lib/python3.6/site-packages/selenium/webdriver/remote/webelement.py", line 140, in get_attribute
    self, name)
  File "/Users/Hyunjong/projects/facecrawler/crawl/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 532, in execute_script

    'args': converted_args})['value']
  File "/Users/Hyunjong/projects/facecrawler/crawl/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 297, in execute
    self.error_handler.check_response(response)
  File "/Users/Hyunjong/projects/facecrawler/crawl/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: The element reference of <img class="_2di5p"> stale: either the element is no longer attached to the DOM or the page has been ref
reshed

Traceback (most recent call last):

  File "crawler.py", line 215, in <module>
    crawler = Crawler(target_site='instagram')
  File "crawler.py", line 180, in crawl_loop
    try:
  File "crawler.py", line 156, in find_next_img
    # find right arrow and click
  File "/Users/Hyunjong/projects/facecrawler/crawl/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 474, in find_element_by_class_name
    return self.find_element(by=By.CLASS_NAME, value=name)
  File "/Users/Hyunjong/projects/facecrawler/crawl/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 832, in find_element
    'value': value})['value']
  File "/Users/Hyunjong/projects/facecrawler/crawl/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 297, in execute
    self.error_handler.check_response(response)
  File "/Users/Hyunjong/projects/facecrawler/crawl/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: .coreSpriteRightPaginationArrow

Dockerize crawler and database.

Use mongodb database for crawling and dockerize both the crawler and database instance.
Use docker-compose to make running containers easily.

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.