Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
听起来您正在寻找某种 html 解析器生成器。有一个 Web 服务(我不记得其名称)可以让您选择页面上的区域,并生成 xpath 解析规则,但我不确定它的工作效果如何,或者即使它仍然存在。
一般来说,如果您可以编写代码,那么自己编写一个解析器是最简单的。我推荐 BeautifulSoup 或 lxml.
Sounds like you're looking for some kind of html parser generator. There was a web service (whose name I can't recall) that would let you select areas on a page, and would generate xpath parsing rules, but I'm not sure how well it worked, or even if it still exists.
Generally, if you can write code, it's easiest to just write a parser yourself. I recommend BeautifulSoup or lxml.