# code4craft/webmagic

A scalable web crawler framework for Java.

Repository: https://github.com/code4craft/webmagic
Canonical: https://ross.abutalabs.com/products/webmagic
Homepage: http://webmagic.io/
Language: Java
License: Apache-2.0
License Family: permissive
Topics: crawler, java, scraping, framework
Last push: 2025-12-20T14:01:57+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 58, release rhythm 40, longevity 100
- inputs: {"age_days": 4880, "days_push": 256, "days_rel": 569, "gap_med": 0.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 11678, forks 4106 (observed 2026-08-28T04:10:49.431069+00:00)

## What it is
WebMagic is a scalable web crawler framework for Java covering the full crawl lifecycle: downloading, URL management, content extraction (XPath/CSS/regex/JsonPath), and persistence. It offers a simple chainable API plus annotation-driven POJO crawlers, with multi-threading and Redis-based distributed support.

## Use cases
- scrape product prices from e-commerce sites
- crawl github repository metadata
- extract structured data from html pages
- build a distributed crawler with redis
- collect news articles into a database
- parse web pages with xpath and css selectors

## When to choose
- you need a JVM-based crawler with a simple, extensible API
- you want annotation-driven extraction into POJOs
- you need multi-threaded or Redis-distributed crawling
- you want pluggable pipelines to console, file, MySQL, or Redis

## When to avoid
- you need a headless browser for JavaScript-heavy sites
- your stack is Python (Scrapy) or Node.js
- you only need a one-off simple HTTP fetch
- you need a maintained GUI scraping tool

## Facets
- artifact type: framework
- maturity: active
- function: web-scraping, parser, http-client, etl
- domain: crawlers, web-development, developer-tools
- platform: jvm, cross-platform
- tags: crawler, scraping, xpath, distributed-crawling, annotation-driven, data-engineering

## Member repositories
- code4craft/webmagic (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:49.431069+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:15:24.734981+00:00, confidence not recorded.
  - readme: https://github.com/code4craft/webmagic (fetched 2026-08-28T04:10:49.431069+00:00, sha ba1f79264805)
  - homepage: http://webmagic.io/ (fetched 2026-08-29T08:13:42.752642+00:00, sha 4494c3c4d1dc)
  - site_page: http://webmagic.io/archive/docs/0.6.1/en/index.html (fetched 2026-08-29T08:13:42.766661+00:00, sha 256c6ea19934)
  - site_page: http://webmagic.io/apidocs/index.html (fetched 2026-08-29T08:13:42.761999+00:00, sha d13e3138b44e)
  - site_page: http://webmagic.io/archive/docs/0.6.1/zh/index.html (fetched 2026-08-29T08:13:42.764405+00:00, sha 064d5208ee6b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
