Sopel plugin that detects AMP links and finds their canonical forms using AmputatorBot
Project description
sopel-amputator
Sopel plugin that detects AMP links and finds their canonical forms using AmputatorBot
Installing
Releases are hosted on PyPI, so after installing Sopel, all you need is pip
:
$ pip install sopel-amputator
Configuring
The easiest way to configure sopel-amputator
is via Sopel's
configuration wizard—simply run sopel-plugins configure amputator
and enter the values for which it prompts you.
Individual settings are described below.
ignore_domains
This is a list of hostnames which sopel-amputator
will ignore, even if they
match one of the common AMP substrings it looks for. By default it contains a
set of ignored domains from the AmputatorBot project.
Setting this value overrides the default, so make sure to also enter any entries that you would like to keep from the default list.
Changelog
0.2.1
- Added Twitter/X domains to default ignore list
0.2.0
Under-the-hood improvements:
- More robust domain matching against ignore list
- Includes distinct log messages for exact matches vs. subdomain matches
- More granular error handling
- Better error logging
- Migrated package metadata from
setup.py
+setup.cfg
topyproject.toml
0.1.0
Initial release.
Pending conversion from setup.py
+setup.cfg
template to newer style package
using pyproject.toml
—plus some other features on the todo list—but the basics
are here:
- Detect likely AMP links
- Call AmputatorBot API for the canonical URL of each suspected AMP link
- Skip links from a configurable list of ignored domains
- Silently fail if no better URL is found
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sopel_amputator-0.2.1.tar.gz
.
File metadata
- Download URL: sopel_amputator-0.2.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdeea3cde8ab132a9701d8de9e6335de9f376801aede5c5cd3e61f30fc09ee5b |
|
MD5 | cee44e666834bbc5a7a6948371a91ff9 |
|
BLAKE2b-256 | d6528e215077ee8f6841874abdc0cda3a6faba96774faea5ab1ce2410b0e4ca8 |
File details
Details for the file sopel_amputator-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: sopel_amputator-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa675891d942f244e609432b01b2a1acd1508ae8c604a2008758e8a88e44d80e |
|
MD5 | b21b07ba47e71568f2c0ab3ce0acb744 |
|
BLAKE2b-256 | a50e201d566e597ef4727f30da5401557f83c4582173ab653f4313ddca43cd41 |