imagecrawler | An image crawler implemented in shell script | Crawler library
kandi X-RAY | imagecrawler Summary
kandi X-RAY | imagecrawler Summary
An image crawler implemented in shell script
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of imagecrawler
imagecrawler Key Features
imagecrawler Examples and Code Snippets
Community Discussions
Trending Discussions on imagecrawler
QUESTION
I'm working with a project where user can search some websites and look for pictures which have unique identifier.
...ANSWER
Answered 2018-Dec-07 at 13:42You should inject your database service into your ẀebCrawler
instances and not use a singleton to manage the result of your web-crawl.
crawler4j
supports a custom CrawlController.WebCrawlerFactory
(see here for reference), which can be used with Spring to inject your database service into a ImageCrawler
instance.
Every single crawler thread should be responsible for the whole process you described with (e.g. by using some specific services for it):
decode this image, get the initiator of search and save results to database
Setting it up like this, your database will be the only source of truth and you will not have to deal with synchronizing crawler-states between different instances or user-sessions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install imagecrawler
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page