简体   繁体   English

抓取并复制另一个网站的内容

[英]crawl and copy another sites content

I want to crawl and copy another site content (just text) and find specific content download links between specific tags .我想抓取和复制另一个站点内容(只是文本)并找到特定标签之间的特定内容下载链接。 how can I do this?我该怎么做? i am using Cpanel and Php我正在使用 Cpanel 和 PHP

I am not sure about your question, but I think you want to do scrapping .我不确定你的问题,但我认为你想做报废 Using PHP, you can use cURL for instance.例如,使用 PHP,您可以使用cURL That will load an URL and, with DOM you will be able to parse HTML and find content, links etc you want.这将加载一个 URL,并且使用DOM,您将能够解析 HTML 并找到您想要的内容、链接等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM