How atehe/acdc_scrapy works
ACDC Scrapy collects marketplace data through Scrapy spiders, using spreadsheet or other configured inputs, then saves crawl outputs and tracks completion. A separate command parses archived ZIP downloads into CSV and records the result. The README documents TikTok, Lazada, and Shopee coverage; the tree shows provider-specific TikTok spiders and parsers, with Lazada and Shopee spider packages present. The graph follows documented or indexed relationships; unsampled subsystem internals and framework wiring are not inferred.
Main entry points: base_spider.py Base spider · config.py Provider parsers · base.py ZIP parser base · s3_handler.py Amazon S3
Components 23
Crawl orchestration
- Marketplace spiders
acdc_scrapy/spiders - Base spider
acdc_scrapy/spiders/base_spider.py - Input loading
acdc_scrapy/utils/input.py - TikTok spiders
acdc_scrapy/spiders/tiktok - Lazada spiders
acdc_scrapy/spiders/lazada - Shopee spiders
acdc_scrapy/spiders/shopee
Provider parsing
- Provider parsers
acdc_scrapy/parsers/config.py - ZIP parser base
acdc_scrapy/parsers/base.py - TokAPI parser
acdc_scrapy/parsers/tiktok/tokapi.py - Echotik parser
acdc_scrapy/parsers/tiktok/echotik.py - FastMoss parser
acdc_scrapy/parsers/tiktok/fastmoss.py - ZIP parse command
acdc_scrapy/commands/parse_zip_download.py
Output processing
- Raw response item
acdc_scrapy/items/core.py - Core item pipeline
acdc_scrapy/pipelines/core.py - JSONL aggregation
acdc_scrapy/pipelines/json_agg.py - Metadata pipeline
acdc_scrapy/pipelines/metadata.py - JSONL utilities
acdc_scrapy/utils/jsonl.py
Storage and tracking
- Amazon S3
acdc_scrapy/integrations/s3_handler.py - Google Sheets
acdc_scrapy/integrations/gsheet_handler.py - Download completion
acdc_scrapy/extensions/core.py - Crawl signals
acdc_scrapy/signals.py - Logging formatter
acdc_scrapy/logging.py
Other components
- Crawl operator
Connections 24
- Crawl operator → Marketplace spiders: starts crawl
README.md - Marketplace spiders → Base spider: shares behavior
acdc_scrapy/spiders/tiktok/tiktok_tokapi.py - Base spider → Input loading: loads input
acdc_scrapy/spiders/base_spider.py - TikTok spiders → Base spider: inherits
acdc_scrapy/spiders/tiktok/tiktok_kratos.py - Lazada spiders → Base spider
- Shopee spiders → Base spider
- ZIP parse command → Provider parsers: selects parser
acdc_scrapy/commands/parse_zip_download.py - Provider parsers → TokAPI parser: registers
acdc_scrapy/parsers/config.py - Provider parsers → Echotik parser: registers
acdc_scrapy/parsers/config.py - Provider parsers → FastMoss parser: registers
acdc_scrapy/parsers/config.py - TokAPI parser → ZIP parser base: inherits
acdc_scrapy/parsers/tiktok/tokapi.py - Echotik parser → ZIP parser base: inherits
acdc_scrapy/parsers/tiktok/echotik.py - FastMoss parser → ZIP parser base: inherits
acdc_scrapy/parsers/tiktok/fastmoss.py - ZIP parser base → Amazon S3: downloads archives
acdc_scrapy/parsers/base.py - ZIP parse command → Amazon S3: uploads CSV
acdc_scrapy/commands/parse_zip_download.py - ZIP parse command → Google Sheets: records parse
acdc_scrapy/commands/parse_zip_download.py - Core item pipeline → Raw response item: processes
acdc_scrapy/pipelines/core.py - JSONL aggregation → Raw response item: aggregates items
acdc_scrapy/pipelines/json_agg.py - JSONL aggregation → Amazon S3: uploads files
acdc_scrapy/pipelines/json_agg.py - Metadata pipeline → Raw response item: adds metadata
acdc_scrapy/pipelines/metadata.py - Metadata pipeline → JSONL utilities: uses metadata
acdc_scrapy/pipelines/metadata.py - Download completion → Crawl signals: registers close hook
acdc_scrapy/extensions/core.py - Download completion → Amazon S3: archives crawl
acdc_scrapy/extensions/core.py - Download completion → Google Sheets: updates tracker
acdc_scrapy/extensions/core.py