如何将推文转换为图片
How to convert a tweet to image
是否有任何特定的应用程序、网站或其他东西可以将推文转换为图像?我想在 Telegram、whatsapp 等其他应用程序中分享推文。
提前致谢
Google 有一个 secret screenshot API
例如,您可以使用它来获取这样一条推文的屏幕截图
在 JSON 回复的底部,您会看到
"screenshot": {
"data": "_9j_4AAQSkZJRgAB.....=",
"height": 569,
"mime_type": "image/jpeg",
"width": 320
}
您需要使用 URL and Filename safe alphabet.
对其进行 Base64 解码
这将为您提供推文的 JPG 屏幕截图。
您现在可以使用 Twitter 上的@aissistant 句柄获取推文的图片或屏幕截图。
Retweet or reply to any tweet with the comment "@aissistant #image" to get an image.
Retweet or reply to any tweet with the comment "@aissistant #screenshot" to get a screenshot.
Retweet any tweet containing images or videos with the comment "@aissistant #video" to get a video.
对于转换为模因和笑话等其他选项,请查看句柄。
完全披露:我是 handle 背后的机器人的创造者。
我创建了一个小型网络应用程序来将推文转换为图像。它将 Twitter 的嵌入 URL 与后端的 Puppeteer 连接起来并截取屏幕截图。您还可以更改一些参数,例如图像宽度、填充、主题并将图像下载为 png 文件。
它是开源的,因此您可以查看代码。
https://github.com/ozgrozer/tweet-image
https://tweet-image.glitch.me/
是否有任何特定的应用程序、网站或其他东西可以将推文转换为图像?我想在 Telegram、whatsapp 等其他应用程序中分享推文。 提前致谢
Google 有一个 secret screenshot API
例如,您可以使用它来获取这样一条推文的屏幕截图
在 JSON 回复的底部,您会看到
"screenshot": {
"data": "_9j_4AAQSkZJRgAB.....=",
"height": 569,
"mime_type": "image/jpeg",
"width": 320
}
您需要使用 URL and Filename safe alphabet.
对其进行 Base64 解码这将为您提供推文的 JPG 屏幕截图。
您现在可以使用 Twitter 上的@aissistant 句柄获取推文的图片或屏幕截图。
Retweet or reply to any tweet with the comment "@aissistant #image" to get an image.
Retweet or reply to any tweet with the comment "@aissistant #screenshot" to get a screenshot.
Retweet any tweet containing images or videos with the comment "@aissistant #video" to get a video.
对于转换为模因和笑话等其他选项,请查看句柄。
完全披露:我是 handle 背后的机器人的创造者。
我创建了一个小型网络应用程序来将推文转换为图像。它将 Twitter 的嵌入 URL 与后端的 Puppeteer 连接起来并截取屏幕截图。您还可以更改一些参数,例如图像宽度、填充、主题并将图像下载为 png 文件。
它是开源的,因此您可以查看代码。
https://github.com/ozgrozer/tweet-image
https://tweet-image.glitch.me/