Metadata-Version: 2.1
Name: scrapy-influxdb-exporter
Version: 1.1.3
Summary: A simple package to export Scrapy spider stats to InfluxDB
Author-email: Stefano Fusai <stefanofusai@gmail.com>
Project-URL: Homepage, https://github.com/stefanofusai/scrapy-influxdb-exporter
Project-URL: Repository, https://github.com/stefanofusai/scrapy-influxdb-exporter
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: influxdb3-python
Requires-Dist: scrapy

# scrapy-influxdb-exporter

A simple package to export Scrapy spider stats to InfluxDB.

## Installation

```bash
pip install scrapy-influxdb-exporter
```

## Usage

Add the following settings to your Scrapy project settings file:

```python
INFLUXDB_DATABASE = ...
INFLUXDB_HOST = ...
INFLUXDB_MEASUREMENT_NAME = ...
INFLUXDB_ORG = ...
INFLUXDB_TOKEN = ...
STATS_CLASS = "scrapy_influxdb_exporter.statscollectors.InfluxDBStatsCollector"
```

## Acknowledgments

This project was inspired by [scrapy-prometheus-exporter](https://github.com/rangertaha/scrapy-prometheus-exporter) by [@rangertaha](https://github.com/rangertaha) and [this article](https://mikulskibartosz.name/how-to-monitor-scrapy-spiders-using-influxdb-and-grafana) by [@mikulskibartosz](https://github.com/mikulskibartosz).

## Contributing

Contributions are welcome! To get started, please refer to our [contribution guidelines](https://github.com/stefanofusai/scrapy-influxdb-exporter/blob/main/CONTRIBUTING.md).

## Issues

If you encounter any problems while using this package, please open a new issue [here](https://github.com/stefanofusai/scrapy-influxdb-exporter/issues).
