有人可以告诉我如何使用 PHP/Zend 从 Blogger 帖子中获取缩略图吗?
有人可以告诉我如何使用 PHP/Zend 从 Blogger 帖子中获取缩略图吗?
Can someone tell me how to obtain the thumbnail from a Blogger post using PHP/Zend?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我假设缩略图是位于 Blogger 帖子中的图像?您需要检索 HTML 文档(查找“在 PHP 中检索 URL”),选择缩略图的 URL(在 HTML 中查找模式并查找“正则表达式”以创建自动提取器)并下载来自检索到的 URL 的图像。
或者也许有一个 RSS 提要包含您要查找的 URL?
或者你的意思是你想要页面的图像?
正如您从上面稍微负面的评论中可以看出的那样,您可能想尝试详细说明您的问题,但我希望这可以让您开始走向正确的方向。
I assume the thumbnail is an image which sits in a Blogger post? You'll need to retrieve the HTML document (look for "retrieving an URL in PHP"), pick out the URL of the thumbnail (find the pattern in the HTML and look up "regular expressions" to create an automatic extractor) and download the image from the retrieved URL.
Or maybe there's an RSS feed which contains the URL you're looking for?
Or do you mean you want an image of the page?
As you can tell by the slightly negative comment above, you might want to try to elaborate a bit on your problem, but I hope this might give you a start into the right direction.
至少尝试一下,发布你所拥有的内容,寻求指导,而不是要求别人为你做你的工作,这是一个很好的做法。
It is a good practice to at least make an attempt, post what you have, ask for pointers, and not ask for others to do your work for you.