GreenFinger is a high-performance, highly scalable distributed web crawler built in Java. Designed for both enterprise and individual users, it offers an intuitive user interface and minimal configuration, enabling seamless and efficient web resource extraction. As an open-source solution, GreenFinger provides a powerful yet user-friendly approach to large-scale web crawling and data acquisition.
- Seamless Spring Boot Integration Natively integrates with Spring Boot, ensuring effortless configuration, deployment, and maintenance.
- Scalable, High-Throughput Distributed Crawling Architected for distributed environments, enabling seamless horizontal scaling to handle massive workloads efficiently.
- Optimized Network Communication with Netty Leverages Netty for ultra-low-latency networking, with additional support for Mina and Grizzly for flexible communication strategies.
- Enterprise-Grade URL Deduplication Implements billion-scale deduplication using Bloom Filter and RocksDB, ensuring optimal storage efficiency and crawl accuracy.
- Granular URL Customization Supports fine-grained control over URL selection, allowing users to define initial URLs, retain only relevant URLs, and exclude undesired links dynamically.
- Advanced Fault Tolerance & Crawler Constraints Incorporates intelligent retry mechanisms, configurable timeouts, target URL limits, and maximum crawl depth enforcement for robust error handling.
- Multi-Engine Web Content Extraction Integrates Playwright, Selenium, and HtmlUnit to capture and process dynamic web content efficiently.
- Strict Adherence to Robots.txt Fully complies with the Robots Exclusion Protocol, ensuring ethical and responsible web crawling.
- Comprehensive Developer API Exposes a rich set of APIs, enabling seamless customization, extension, and integration into diverse ecosystems.
- Automated Authentication Handling Supports intelligent login and logout workflows, facilitating seamless authentication across secured web portals.
- Version-Controlled Web Document Management Assigns unique versioning to crawled documents, enabling multi-version indexing for enhanced content tracking and retrieval.
- Intuitive Angular-Based Web Interface Provides a modern, interactive dashboard built with Angular, empowering users with real-time monitoring, configuration, and management capabilities.
Technology | Version Requirement | Description |
---|---|---|
β JDK | 17 or later | Core Java runtime environment |
π± Spring Boot | 2.7.18 | Backend framework for microservices and rapid development |
β‘ Netty | 4.x | High-performance asynchronous networking framework |
π₯ Redis | 7.x or later | In-memory data store for caching and message queuing |
π PostgreSQL | 9.x or later | High-performance, open-source relational database |
π ElasticSearch | 7.16.2 or later | Distributed search and analytics engine |
π· Selenium | 4.x | Web automation framework for headless and UI-based scraping |
π Playwright | 1.48 | Modern browser automation tool for scraping and testing |
π HtmlUnit | 2.6 | Lightweight headless browser for quick HTML processing |
π Angular | 19.x | Frontend framework for building interactive web applications |
π¨ Angular Material | Latest | UI component library for modern, responsive designs |
- Git RepositoryοΌ https://github.com/paganini2008/greenfinger.git
- Wiki: https://paganini2008.github.io/greenfinger/
- Directory StructureοΌ
π greenfinger
βββ π greenfinger-ui
β βββ π pom.xml
β βββ π src
β β βββ π config # Configuration files
β β βββ π db # Database-related scripts and configurations
β β βββ ...
βββ π greenfinger-spring-boot-starter
β βββ π pom.xml
β βββ π src
β βββ ...
βββ π LICENSE
βββ π pom.xml
βββ π README.md
- Modify configuration:
spring:
redis:
database: 0
host: 127.0.0.1
port: 6379
password: 123456
elasticsearch:
rest:
uris: http://127.0.0.1:9200
connection-timeout: 10000
read-timeout: 60000
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/test?characterEncoding=utf8&allowMultiQueries=true&useSSL=false&stringtype=unspecified
username: admin
password: 123456
# Binding host name is preferred
doodler:
transmitter:
nio:
server:
bindHostName: 127.0.0.1
# Internal Work ThreadPool Threads
greenfinger:
workThreads: 1000
-
Create database and import table scripts execute db/crawler.sql
-
mvn clean install
-
run jar with
java --add-opens=java.base/java.lang=ALL-UNNAMED -jar greenfinger-ui-service-1.0.0-SNAPSHOT.jar
-
Open the Web UI http://localhost:6120/ui/index.html
Step1: add dependency in your pom.xml:
<dependency>
<groupId>com.github.paganini2008</groupId>
<artifactId>greenfinger-spring-boot-starter</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
Step2: add @EnableGreenFingerServer
on the main:
@EnableAsync(proxyTargetClass = true)
@EnableScheduling
@EnableGreenfingerServer
@SpringBootApplication
public class GreenFingerServerConsoleMain {
public static void main(String[] args) {
SpringApplication.run(GreenFingerServerConsoleMain.class, args);
}
}
Step3: Run it
For detailed setup instructions, API references, and advanced configuration, visit the Official Documentation.
Contributions are welcome! Refer to the Contributing Guide for more information.
Greenfinger is licensed under the Apache License. See the LICENSE file for more details.