# elliotgao2/gain

Web crawling framework  based on asyncio.

Repository: https://github.com/elliotgao2/gain
Canonical: https://ross.abutalabs.com/products/gain
Language: Python
License: MIT
License Family: permissive
Topics: python, crawler, spider, asyncio, uvloop, aiohttp
Last push: 2026-08-09T05:43:16+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 35, longevity 100
- inputs: {"age_days": 3381, "days_push": 24, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2019, forks 205 (observed 2026-08-28T04:06:06.215492+00:00)

## What it is
Gain is an asynchronous web crawling framework for Python built on asyncio, aiohttp, and lxml/pyquery. Users declare items and parsers declaratively while the framework handles concurrency, retries, and persistence.

## Use cases
- scrape blog posts from a website
- crawl paginated listing pages
- extract data with CSS selectors or XPath
- build an async web spider in Python
- save scraped page content to files
- crawl websites through a proxy

## When to choose
- you want a lightweight Scrapy-like framework with asyncio concurrency
- you need declarative item/parser definitions for structured scraping
- you want XPath and CSS selector support out of the box

## When to avoid
- you need JavaScript rendering of dynamic pages
- you need a full-featured scraping framework with pipelines, middlewares, and a large ecosystem
- your project requires Python below 3.10

## Facets
- artifact type: framework
- maturity: active
- function: web-scraping, http-client, parser
- domain: crawlers, web-development
- platform: python, cross-platform
- tags: asyncio, aiohttp, crawler, spider, uvloop, scraping, automation, linux

## Member repositories
- elliotgao2/gain (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:06.215492+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-30T03:00:26.733507+00:00, confidence not recorded.
  - readme: https://github.com/elliotgao2/gain (fetched 2026-08-28T04:06:06.215492+00:00, sha f3bbdb0a95c8)
  - registry_pypi: https://pypi.org/pypi/gain/json (fetched 2026-08-29T10:40:19.180808+00:00, sha f21e44474106)
- Data as of 2026-08-30T08:39:29.467469+00:00.
