Skip to main content

blacksap

blacksap is a Python based RSS tracker that is designed to watch multiple RSS feeds from torrent sites and download any new torrent files to a specified location. If you have your torrent client configured to watch the same directory the files will be automatically picked up!

License

blacksap is released under the GNU General Public License v3.0, see the file LICENSE for the license text.

Installation

As of version 1.8, blacksap is supported the latest versions of Python3 and PyPy3!

The most straightforward way to get blacksap working for you is:

pip install blacksap

NOTE:

By default, the blacksap executable gets put in /usr/local/bin/

Getting Started

You can get help from blacksap by running:

blacksap --help

Tracking a new feed

To track a new RSS feed run:

blacksap track "https://example.com/search?q=latest_torrents&fmt=rss"

Viewing tracked feeds

To view all the feeds being tracked, run:

blacksap tracking

Untracking a feed

To untrack a feed type:

blacksap untrack "https://example.com/search?q=latest_torrents&fmt=rss"

Run blacksap

To get blacksap to check all RSS fees and download any new torrent files, simply run:

blacksap run --output ~/Downloads/

NOTE:

On its first check of a new feed, blacksap will only download the most recent torrent file. If you would like to download more files (or none at all), override the number of files to download with the --count flag! Don't forget to specify the URL of the new RSS feed or you will force that number of files to download from every tracked feed!

Extras

Preferences

The feeds that blacksap tracks are stored in ~/.blacksap.cfg. If you want to reset blacksap you can simply delete this file. It is also stored in JSON format, so feel free to edit the file in place if needed.

App Settings

App specific settings are also stored in this file in an "app" hash. The following settings are currently available for configuration

  • threads - Integer for number of threads to use (Default is None)
  • proxies - Hash of proxies to use for 'http' and 'https' (Default is None)
  • ipv6 - Boolean (Default is True)

Feed Settings

In version 1.5 and later of blacksap you can add a special "rules" key to each feed that contains a list of regular expressions that torrent files in the feed must match in order to be downloaded by blacksap. The regular expressions are processed in order and when the first match is found no other rules are applied. If no "rules" key exists then any new files will be downloaded.

Example Settings

Below is an example blacksap configuration file:

{
	"app": {
		"threads": 4,
		"ipv6": false,
		"proxies": {
			"http": "socks5://user:pass@fqdn:port",
			"https": "socks5://user:pass@fqdn:port"
		}
	},
	"feeds": [{
		"url": "https://example.com/search?q=latest_torrents&fmt=rss",
		"name": "Example Torrents",
		"hash": "51930c6ea13972d61d7783da0910aa89",
		"enabled": true,
		"new": false,
		"last": "My_Awesome_File.torrent",
		"rules": [
			"Awesome_File"
		]
	}]
}

Mac OSX LaunchAgent

If you are running OSX please check out the LaunchAgent in the git repo extras folder. You can add it to your ~/Library/LaunchAgents/ directory and that way blacksap will run every hour and download new torrents automatically!

UNIX/Linux Cronjob!

Add the following to your user's crontab (using crontab -e command as your user) to schedule blacksap to run every hour (downloading to a ~/torrents/ directory):

# Blacksap cronjob
0 * * * * /usr/local/bin/blacksap run -o ~/torrents/

Contributing

Comments and enhancements are very welcome.

Report any issues or feature requests on the BitBucket bug tracker. Please include a minimal (not-) working example which reproduces the bug and, if appropriate, the traceback information. Please do not request features already being worked towards.

Code contributions are encouraged: please feel free to fork the project and submit pull requests to the develop branch.

Metadata

Release files for blacksap 1.8.0

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

Source distribution (sdist)

Source distribution for blacksap 1.8.0
File Size Uploaded Provenance Actions
blacksap-1.8.0.tar.gz 20.5 kB Without provenance Details for blacksap-1.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 41.2 kB

Release files / blacksap-1.8.0.tar.gz

Download URL blacksap-1.8.0.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d825e00dd0b911ec18eec7c5de92d6a0b0067ec0215505d90543a4731808466a
BLAKE2b-256 checksum
How to use checksums
fdba3fa3e7673dd7810a17f439af32bc65018e170f3c827686a85896c85a5306
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / blacksap-1.8.0-py3-none-any.whl

Download URL blacksap-1.8.0-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4403938490379982747b5a60ae5966992e667837e2c13f9826d763e075c85a62
BLAKE2b-256 checksum
How to use checksums
3d521cae1754d5d328640e8a6cced953fa818eee9205e9ccbbc9137f71965ed6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Security for blacksap 1.8.0

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