Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试从使用必应新闻搜索 API 返回的对象中获取缩略图。在这个问题中我能想到的返回对象的唯一有用属性是 url。有没有什么简单的方法可以使用这个 url 来获取文章的缩略图?
使用 url 必应搜索让您返回对 url 进行 curl 调用并从页面的 OGP 数据中获取图像。有几个库可用于多种编程语言来解析网页的 OGP 数据。