Skip to main content

Scrapy pipeline & extensions for AP Cloudy (logs, stats, requests, items)

Project description

Apcloudy-Pipeline

apcloudy-pipeline is a Scrapy integration that sends items, requests, logs, and spider statistics to the Your backend using secure HMAC-based authentication.


Features

  • 📦 Item forwarding using Scrapy Item Pipeline
  • 🌐 Request and response logging
  • 📊 Spider statistics reporting
  • 🧾 Spider, user, and Scrapy internal log forwarding
  • 🔐 HMAC-secured API communication

Installation

pip install apcloudy-pipeline

Configuration

Add the following settings to your Scrapy project's settings.py file:

APCLOUDY_API_URL = "http://localhost:8000/api/v1/"
APCLOUDY_API_KEY = "api_test_1234567890"
APCLOUDY_SECRET_KEY = "secret_test_1234567890"
JOB_ID = 123

Item Pipeline (Required)

The item pipeline is required to send scraped items to the backend.

ITEM_PIPELINES = {
    "apcloudy_pipeline.pipelines.APCloudyItemPipeline": 300,
}

Extensions (Optional)

Enable the following extensions if you want to send requests, logs, and spider statistics.

EXTENSIONS = {
    "apcloudy_pipeline.request_logger.APCloudyRequestLogger": 400,
    "apcloudy_pipeline.extensions.APCloudyLoggingExtension": 510,
    "apcloudy_pipeline.extensions.APCloudyStatsExtension": 520,
}

Extensions Overview

  • APCloudyRequestLogger Captures request and response metadata such as URL, HTTP method, status code, timing, and fingerprint.

  • APCloudyLoggingExtension Sends spider logs, user logs, Scrapy internal logs, and exception tracebacks to the backend.

  • APCloudyStatsExtension Sends final spider statistics when the crawl finishes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apcloudy_pipeline-0.1.2.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apcloudy_pipeline-0.1.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file apcloudy_pipeline-0.1.2.tar.gz.

File metadata

  • Download URL: apcloudy_pipeline-0.1.2.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for apcloudy_pipeline-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4f8b5251d50f6aa73d524e773da9525d272a2abd9f405f3fea5b9c225fb1b5af
MD5 8f6078295d4f8bacc0434c65eea0af4c
BLAKE2b-256 195f07cd73bfebfcbe8633979fa2770e11bdc4e4f16fb7e20df2a9782a1fe942

See more details on using hashes here.

File details

Details for the file apcloudy_pipeline-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for apcloudy_pipeline-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0333ff7e13d13f2e92692c734b036892c75660d4960629c5ade6f1d677047fc0
MD5 ee2a525338ed9042767a83cb1ac99203
BLAKE2b-256 7a16300b28a3d6e3bc801f3056e07a87fcf572887582636180a2fb16b6cded8e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page