Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sopel-amputator

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sopel-amputator

Sopel plugin that detects AMP links and finds their canonical forms using AmputatorBot

  • 0.2.1
  • PyPI
  • Socket score

Maintainers
1

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 to pyproject.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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc