GitShow/rmax/scrapy-redis
rmax

scrapy-redis

Redis-based components for Scrapy.

by rmax
crawlerdistributedredisscrapy
Star on GitHubForkWebsite

Python

5.6k stars1.6k forks37 contributorsQuiet · 3mo agoSince 2011v0.9.1MIT

Meet the team

See all 37 on GitHub →
rmax
rmax155 contributions
LuckyPigeon
LuckyPigeon38 contributions
schmich
schmich4 contributions
Germey
Germey4 contributions
llonchj
llonchj3 contributions
qshine
qshine3 contributions
songhao8080
songhao80803 contributions
rolando
rolando3 contributions

Languages

View on GitHub →
Python94.6%
Makefile4.9%
Dockerfile0.5%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

5 of 6 standards met

Community profile →
71
✓README✓License✓Contributing○Code of Conduct✓Issue Template✓PR Template

Recent PRs & issues

Quiet · Last activity 3mo ago
See all on GitHub →
Steve0x2a
fix: restore datetime values from Redis stats hashesOpenPR

stores datetimes as (a float). Redis keeps that as a string. always did , so Scrapy / crashed on spider close: ValueError: invalid literal for int() with base 10: b'1739222295.11384' Integer counters still decode as . Timestamp fields restore as UTC so works. Reported by @lexsysko. Fixes #303

Steve0x2a · 3d ago
lexsysko
Stats ValueError: invalid literal for int() with base 10: b'1739222295.11384'OpenIssue

Problem: Solution: Changes:

lexsysko · 9mo ago

Recent fixes

View closed PRs →
rmax
feat: add optional multi-key priority support for RedisSpiderMergedPR

Implements #310 Changes now accepts (unchanged behavior) or (priority-ordered) Multi-key mode: consumes from highest-priority non-empty queue first Drains current queue for throughput; optional for periodic preemption Idle detection considers all configured keys Keys are templated, deduplicated, and validated Full test coverage with (no real Redis required) Closes #310

rmax · 3mo ago
rmax
docs: add AGENTS.md and supplementary developer guidesMergedPR

Summary Adds comprehensive developer/agent guide to the repository, covering everything needed for efficient contribution: AGENTS.md — Main guide at repo root covering: Project architecture (RedisMixin, RedisSpider, RedisCrawlSpider, Scheduler, etc.) Multi-key mode documentation (PR #311 feature) Quick start, testing with FakeRedisServer, tox matrix Pre-commit hooks, Sphinx docs build CI/CD workflows and debugging PR workflow (branch naming, commit conventions, co-author credit, squash merge) Security practices and dependency management Links to supplementary docs docs/coding-standards.rst — Python coding standards: Style guide (PEP 8, 120 chars), linting config Type hints for public APIs, NumPy/Google docstrings Best practices (isinstance guards, backward compatibility, logging, context managers) docs/security-guide.rst** — Security guide: Bandit scanning, Dependabot, dependency security Redis TLS/SSL and authentication configuration Input validation and request fingerprinting Known concerns (pickle serializer, Redis exposure, multi-tenant isolation) Closes #310

rmax · 3mo ago
MasoudLakestani
Add optional support for prioritized multiple Redis input keys in RedisSpiderClosedIssue

Hi, I’d like to propose optional support for prioritized multiple Redis input keys in . Currently, assumes a single . In some production use cases, work is split across multiple Redis queues with different priorities, and users need to process the highest-priority non-empty queue first without running multiple spiders or maintaining custom overrides. Proposed behavior: allow to be either a string or an ordered list of strings preserve current behavior when it is a string in list mode, consume from the highest-priority non-empty queue optionally add a setting so the spider can periodically check whether a higher-priority queue has received new items This would be fully backward compatible and opt-in for multi-key users only. If this direction fits the project, I’d be happy to prepare a PR.

MasoudLakestani · 3mo ago
Structured data for AI agents

Repository: rmax/scrapy-redis. Description: Redis-based components for Scrapy. Stars: 5644, Forks: 1582. Primary language: Python. Languages: Python (94.6%), Makefile (4.9%), Dockerfile (0.5%). License: MIT. Homepage: http://scrapy-redis.readthedocs.io Topics: crawler, distributed, redis, scrapy. Latest release: v0.9.1 (2y ago). Open PRs: 3, open issues: 33. Last activity: 3mo ago. Community health: 71%. Top contributors: rmax, LuckyPigeon, schmich, Germey, llonchj, qshine, songhao8080, rolando, laggardkernel, gnemoug and others.

·@ofershap

Replace github.com with gitshow.dev