TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Whats the best set of tools do Structure crawled web pages?

2 点作者 lucasrp将近 12 年前
Hello everybody,<p>I have to scrape ~1k news sources (among other types of content) on the web, and extract data like title, author, date, news body, etc.<p>Right now we use a horrible inhouse code (And Jsoup) to parse it. The problem is that we rely on regex expressions and css colectors to do it. As you can imagine, the maintanance cost is very high, because everytime some source changes their template, we have to do it again, by hand.<p>We are interested in doing the whole thing from scratch, and i would like to now which tools, or set of tools, would be better to do a more inteligent approach. i&#x27;ve had a nice experience with antlr building a date parser, for example.<p>Any suggestions?

1 comment

palidanx将近 12 年前
I use the Mechanize gem for rails<p><a href="http://mechanize.rubyforge.org/" rel="nofollow">http:&#x2F;&#x2F;mechanize.rubyforge.org&#x2F;</a>