Telegram 从电报即时视图中的img标签提取图像链接
我在模板中添加了Telegram 从电报即时视图中的img标签提取图像链接,telegram,telegram-instant-view,Telegram,Telegram Instant View,我在模板中添加了$body变量,如下所示: $body: //div[has-class("story-content")] <img src="https://images.somesite.com/somesite%2F2020-09%2F6d16d29c-1352-405f-a739-45dfb5f0f16f%2FOpu.jpeg?auto=format%2Ccompress&format=webp&w=360&
$body
变量,如下所示:
$body: //div[has-class("story-content")]
<img src="https://images.somesite.com/somesite%2F2020-09%2F6d16d29c-1352-405f-a739-45dfb5f0f16f%2FOpu.jpeg?auto=format%2Ccompress&format=webp&w=360&dpr=4.0" data-src="https://images.somesite.com/somesite%2F2020-09%2F6d16d29c-1352-405f-a739-45dfb5f0f16f%2FOpu.jpeg?auto=format%2Ccompress" alt="Alt_text" class="class1 class2 class3 class4 class5" loading="lazy">
$body
中有图像。但是图像没有加载并显示如下内容:
$body: //div[has-class("story-content")]
<img src="https://images.somesite.com/somesite%2F2020-09%2F6d16d29c-1352-405f-a739-45dfb5f0f16f%2FOpu.jpeg?auto=format%2Ccompress&format=webp&w=360&dpr=4.0" data-src="https://images.somesite.com/somesite%2F2020-09%2F6d16d29c-1352-405f-a739-45dfb5f0f16f%2FOpu.jpeg?auto=format%2Ccompress" alt="Alt_text" class="class1 class2 class3 class4 class5" loading="lazy">
如果任何图像无法从该站点加载,则它可能是默认图像。我不知道。但是图像是从浏览器加载的,没有任何问题
图像标记的外观如下所示:
$body: //div[has-class("story-content")]
<img src="https://images.somesite.com/somesite%2F2020-09%2F6d16d29c-1352-405f-a739-45dfb5f0f16f%2FOpu.jpeg?auto=format%2Ccompress&format=webp&w=360&dpr=4.0" data-src="https://images.somesite.com/somesite%2F2020-09%2F6d16d29c-1352-405f-a739-45dfb5f0f16f%2FOpu.jpeg?auto=format%2Ccompress" alt="Alt_text" class="class1 class2 class3 class4 class5" loading="lazy">
可能Telegram无法抓取图像,因为链接末尾没有支持的图像扩展。我想知道是否可以从该图像url从https://
到.jpeg
获取该部分
比如,https://images.somesite.com/somesite%2F2020-09%2F6d16d29c-1352-405f-a739-45dfb5f0f16f%2FOUP.jpeg
作为图像url
我该怎么做