{"id":19944972,"url":"https://github.com/ehforwarderbot/efb-link_preview-middleware","last_synced_at":"2026-05-13T17:37:36.207Z","repository":{"id":77136249,"uuid":"325747630","full_name":"ehForwarderBot/efb-link_preview-middleware","owner":"ehForwarderBot","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-31T07:56:42.000Z","size":2798,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T05:12:36.821Z","etag":null,"topics":["efb-middleware","eh-forwarder-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ehForwarderBot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-31T07:56:31.000Z","updated_at":"2023-09-25T03:14:45.000Z","dependencies_parsed_at":"2023-04-28T18:46:58.581Z","dependency_job_id":null,"html_url":"https://github.com/ehForwarderBot/efb-link_preview-middleware","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehForwarderBot%2Fefb-link_preview-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehForwarderBot%2Fefb-link_preview-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehForwarderBot%2Fefb-link_preview-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehForwarderBot%2Fefb-link_preview-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ehForwarderBot","download_url":"https://codeload.github.com/ehForwarderBot/efb-link_preview-middleware/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241374520,"owners_count":19952544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["efb-middleware","eh-forwarder-bot"],"created_at":"2024-11-13T00:23:39.680Z","updated_at":"2025-11-23T20:09:05.194Z","avatar_url":"https://github.com/ehForwarderBot.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LinkPreview: A middleware for EFB \n\n## Notice\n\n**Middleware ID**: `catbaron.link_preview`\n\n**LinkPreview** is a middleware for EFB to generqate link preview for the first url contained by the message.\n\n![example](./example.jpg)\n\n![example](./img_url.png)\n\n* For url refering to an image, the image should be sent as preview.\n* Add `\\np` at the begining of message to avoid link preview for current message.\n\nYou need to use **MessageBlocker** on top of [EFB](https://ehforwarderbot.readthedocs.io). Please check the document and install EFB first.\n\n## Dependense\n* Python \u003e=3.6\n* EFB \u003e=2.0.0b15\n* beautifulsoup4\n\n## Install\n\n* Install \n```\npip install efb-link-preview-middleware\n```\n* Register to EFB\nFollowing [this document](https://ehforwarderbot.readthedocs.io/en/latest/getting-started.html) to edit the config file. The config file by default is `~/.ehforwarderbot/profiles/default`. It should look like:\n\n```\nmaster_channel: foo.demo_master\nslave_channels:\n- foo.demo_slave\n- bar.dummy\nmiddlewares:\n- foo.other_middlewares\n- catbaron.link_preview\n```\n\nYou only need to add the last line to your config file.\n\n* Restart EFB.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehforwarderbot%2Fefb-link_preview-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fehforwarderbot%2Fefb-link_preview-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehforwarderbot%2Fefb-link_preview-middleware/lists"}