从 URL 检索信息以在我的网站上共享
我即将在我的网站上开发一项新功能,允许用户给我一个 URL,然后我将使用此 URL 来获取网站标题、描述和图像,以便将这些信息存储在我的网站上。我需要知道是否有任何脚本可以做到这一点,或者是否有一个 Web 服务可以获取 url 并为我提供我需要的信息,或者我应该从头开始开发它。
另外,我想知道信息共享机制中是否使用任何类型的标准,因为我想允许用户共享网络上的视频或照片。
I am about to develop a new feature on my website that allow the user to give me a URL then I would use this URL to get the site title, description and image(s) so that I store these information on my website. I need to know if there is any script that can do that or if there is a web service that would take the url and give me the information I need or shall I start developing this from scratch.
Also, I would like to know if there is any kind of standards used in the information sharing mechanism as I want to allow the user to share a video or photo from the web.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有一个脚本可以从所有网站提取信息,因为大多数网站的源 HTML 都是不同的。您需要专门为您正在抓取的网站编写代码。
至于联合内容,您可以使用 RSS(Really Simple Syndicate),这是一种常用于共享内容的 XML 格式。
There is no single script that can extract information from all sites, because the source HTML for most websites is different. You will need to write code specifically for the sites you are scraping.
As for syndicating the content, you can use RSS (Really Simple Syndication), which is an XML format commonly used for sharing content.