如何自动提取从其他网站的内容? [英] How to extract content from other websites automatically?

查看:194
本文介绍了如何自动提取从其他网站的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从它的网页中提取从网站上的特定数据...

I want to extract a specific data from the website from its pages...

我不希望得到一个特定页面的所有内容,但我需要只有一些部分(只有一个表里面,也可以是数据content_div),我想重复做沿着该网站的所有页面..

I dont want to get all the contents of a specific page but i need only some portion (may be data only inside a table or content_div) and i want to do it repeatedly along all the pages of the website..

我怎样才能做到这一点?

How can i do that?

推荐答案

使用卷曲中检索的内容和XPATH选择单个元素。

Use curl to retreive the content and xPath to select the individual elements.

要注意版权的虽然。

这篇关于如何自动提取从其他网站的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆