dansuh17 / facecrawler Goto Github PK
View Code? Open in Web Editor NEWDistributed, continuous web image crawler.
Distributed, continuous web image crawler.
First issue.
By defining SignalHandler
class.
referenced : this link
Infinite viewing.
Create interface for hasthag generator.
Separate running thread for data filter.
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
Use mongodb
database for crawling and dockerize both the crawler and database instance.
Use docker-compose to make running containers easily.
제곧내
Faster and more robust crawling.
A sample script that crawls single image and saves to screenshot.png
.
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.