使用perl从多表html文件中提取特定表 [英] Extract a particular table from multi-table html file using perl

查看:72
本文介绍了使用perl从多表html文件中提取特定表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含三个表的html文件.但是我只想提取三个表中的一个.我该怎么做?

I have a html file with three tables. But I want to extract only one table of the three. How do I do this?

推荐答案

用于提取HTML文档部分的一个很好的模块是 HTML::Query .

A good module for extracting parts of a HTML document is HTML::Query.

它提供了一个类似于jQuery的界面,用于选择要提取文档的哪一部分.

It provides a jQuery-like interface for selecting what part of a document to extract.

这篇关于使用perl从多表html文件中提取特定表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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