Skip to main content

LinkPreview: A middleware for EFB

Notice

Middleware ID: catbaron.link_preview

LinkPreview is a middleware for EFB to generqate link preview for the first url contained by the message.

example

example

  • For url refering to an image, the image should be sent as preview.
  • Add \np at the begining of message to avoid link preview for current message.

You need to use MessageBlocker on top of EFB. Please check the document and install EFB first.

Dependense

  • Python >=3.6
  • EFB >=2.0.0b15
  • beautifulsoup4

Install

  • Install
git clone https://github.com/catbaron0/efb-link_preview-middleware
cd efb-link_preview-middleware
sudo python setup.py install
  • Register to EFB Following this document to edit the config file. The config file by default is ~/.ehforwarderbot/profiles/default. It should look like:
master_channel: foo.demo_master
slave_channels:
- foo.demo_slave
- bar.dummy
middlewares:
- foo.other_middlewares
- catbaron.link_preview

You only need to add the last line to your config file.

  • Restart EFB.

Metadata

Release files for efb-link-preview-middleware 0.1.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 efb-link-preview-middleware 0.1.0
File Size Uploaded Provenance Actions
efb_link_preview_middleware-0.1.0.tar.gz 4.5 kB Without provenance Details for efb_link_preview_middleware-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for efb-link-preview-middleware 0.1.0
File Interpreter ABI Platform Actions
efb_link_preview_middleware-0.1.0-py3-none-any.whl Python 3 none any Details for efb_link_preview_middleware-0.1.0-py3-none-any.whl

Total release size: 9.6 kB

Security for efb-link-preview-middleware 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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