Skip to main content

pyspamcop

Web crawler for finishing SpamCop.net reports automatically.

Description

pyspamcop is a web crawler for finishing SpamCop.net reports automatically.

It will use your account details to login into SpamCop web page and finish reporting your SPAM. Spamcup NG tries to be as polite as possible, introducing forced delays to not overwhelm SpamCop.net website. All reports are sent sequentially.

pyspamcop also saves data from the report sends to Spamcop. The data available are only those exposed by Spamcop itself, there is no correlation of the statistics Spamcop have and save for themselves.

pyspamcop is a rewrite from the pyspamcop project.

Introduction

  1. Create a configuration file
  2. In your favorite shell:
  pyspamcop

That's it! See the configuration file details.

You can also provide some of the parameters in the command line.

Usage:

  pyspamcop --help

Warnings

Some important warnings before starting using pyspamcop:

  • The program does not know where the SPAM report will be sent so it's your responsibility to know it!
  • If the program asks Spamcop to send reports to wrong places it's your fault!
  • If the program has a bug that causes same report being sent thousand times it's your mail addresses!

Setup

pyspamcop is distributed as a regular Python module, so you can install from pypi.org repository with pip or any other program that you use to install Python modules.

Configuration file

You can also provide a configuration file to avoid having to provide the same information everytime you want to execute the program.

The program will look for a configuration file name .pyspamcop.yaml in the corresponding home directory of the user (that will dependend on the OS you're executing it). Pay attention to the dot ('.') in front of the file.

The configuration file must be written as an YAML file, with the exact properties below:

---
execution_options:
  automatic_confirmation: true
  dry_run: false
  verbosity: INFO
  database:
    enabled: true
    path: /var/spamcop/reports.db
accounts:
  Provider1:
    email: account@provider1.com
    password: FOOBAR
  Provider2:
    email: account@provider2.com
    password: FOOBAR

All those options have their corresponding command line parameter. Be sure to take care of file permissions to avoid disclosure of your SpamCop.net password!

All four execution_options keys (automatic_confirmation, dry_run, verbosity, database) are required, as are database.enabled and database.path. There are no defaults — if any of them is missing, pyspamcop will refuse to start and report which key is missing.

Local database

You probably noticed the following configuration lines from the YAML:

  database:
    enabled: true
    path: /var/spamcupng/reports.db

Those lines define the configuration for a local database based on SQLite.

This database will save data related to the submitted reports and can be used to provide further details of what kind of SPAM you're getting and from.

Copyright and license

This software is copyright (c) 2026 of Alceu Rodrigues de Freitas Junior, glasswalk3r@yahoo.com.br

This file is part of pyspamcop.

pyspamcop is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

pyspamcop is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with pyspamcop. If not, see http://www.gnu.org/licenses/.

Metadata

Release files for pyspamcop 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyspamcop 0.1.2
File Size Uploaded Provenance Actions
pyspamcop-0.1.2.tar.gz 82.6 kB Without provenance Details for pyspamcop-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyspamcop 0.1.2
File Interpreter ABI Platform Actions
pyspamcop-0.1.2-py3-none-any.whl Python 3 none any Details for pyspamcop-0.1.2-py3-none-any.whl

Total release size: 111.7 kB

Release files / pyspamcop-0.1.2.tar.gz

Download URL pyspamcop-0.1.2.tar.gz
Size 82.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5a4ae1df730b8faaaff1e003ff60b7421c4854ed47f7f84c2f96d3648f6209d3
BLAKE2b-256 checksum
How to use checksums
421fd411620d8bcbdd91aaed3c929c3e76608ec7bd8abfc2f97b30f351d082e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pyspamcop-0.1.2-py3-none-any.whl

Download URL pyspamcop-0.1.2-py3-none-any.whl
Size 29.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63862fa82f0ba173686a70af9b9a139bcb55a7740cf5ed444d65b367178e36fd
BLAKE2b-256 checksum
How to use checksums
8b53f80c1e86147960823555997688fdfcc89f91cd3ec3f992e67a30dda5a65a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for pyspamcop 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page