如何自动化数据输入过程
我遇到过这样的情况:我需要访问 100 多个网站来收集联系信息,然后将其输入到我自己的网站中。我想知道的是,如果我没说错的话,是否可以编写一个程序或一个爬虫来获取所有这些信息。我猜这些信息将以非结构化 html 形式提供,然后我必须进行解析以使其结构化。是否有人有类似的这样做的经验。还想了解有关所使用语言的意见。
I have a situation where I need to visit 100 odd websites to collect contact information and then enter this in my own site. What I want to know is if its possible to write a program or a crawler, if I'm putting it correctly, to get all this information. I'm guessing the information will be available in unstructured html and then I'll have to do parsing to make it structured.Has anyone had any similar experience of doing this. Also would like opinions on the language to use.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您正在寻找网页抓取工具。一些谷歌搜索应该会出现各种免费和商业产品来解决您的问题。如果您收集的数据相当简单且结构良好,您可能不需要自己编写数据。
You're looking for a Web Scraper. A few Google searches should turn up various free and commercial products that would solve your problem. You probably don't need to write one yourself if the data you're collecting is fairly simple and well structured.
尝试 ruby ( mechanize lib):
http://mechanize.rubyforge.org/mechanize/GUIDE_rdoc.html< /a>
为例:
Try ruby ( mechanize lib):
http://mechanize.rubyforge.org/mechanize/GUIDE_rdoc.html
as example: