A script to fetch post info and format it for a message to compliment the preview/embed. (YT only for now.)
- Python 100%
| message-inline-post-info.py | Stoat output, DeArrow, yt-dlp arguments, better attribution, minor refactor. | |
| README.md | Uses SponsorBlock data licensed used under CC BY-NC-SA 4.0 from https://sponsor.ajay.app . - v0.0.7 | |
Message Inline Post Info (MIPI)
CLI script to fetch information from social media posts and compile it in compact preformatted messages to compliment the sparse in information previews a given platform may have, or replace it in cases where it's not available.
Special Thanks.
- Olivia Lee for bringing Our attention to and helping figure out subtitle support.
- Many Colors, Many Forms, Many Flavors, Maybe More (she/her) for pointing out that the signature sucks (Our words, not hers) and doesn't make it clear it leads to this project.
Supported inputs.
- YouTube.
- In the future, potentially any source that yt-dlp supports.
Supported outputs.
| Platform | Format |
|---|---|
| generic reference | HTML (WIP) md (WIP) |
| Stoat | md+ |
[mtarix]TM |
HTML |
| Discard | md+ |
| Missing a platform? | Feel free to open an issue! |
Usage.
- Download latest
message-inline-post-info.pyfrom releases. - Make sure Python and the dependencies (see below) are installed.
- Run
message-inline-post-info.pyin a terminal and follow instructions.- Keep in mind that most terminal emulators don't paste text with Ctrl + V but with Ctrl + Shift + V.
- Similarly, use Ctrl + Shift + C to copy selected text from the output.
- Copying and pasting can also be done by pressing SMB inside the terminal window and selecting the Copy or Paste option in the popup menu.
Settings.
The settings are found within the script itself.
- If you know you don't need a given format, you can change it accordingly by setting the related flag from
TruetoFalse(case sensitive) in theoutputFormatssection around line 25. - For best results, it is recommended to set the right path for the
--cookies-from-browseryt-dlp option around line 33. See its documentation for more information. - To select which format gets automatically copied, change the value of
autocopybetween the quotation marks. Reference theoutputFormatsaround line 25 for the available options.
Dependencies.
feedparser pyclip yt_dlp
Attribution.
This project makes use of the following tools/services:
- Return YouTube Dislike (🌐 webpage, 🐙 GitHub)
- yt-dlp (🐙 GitHub)
- Uses SponsorBlock data licensed used under CC BY-NC-SA 4.0 from https://sponsor.ajay.app.