用于从在线源获取数据的代码 [英] code to fetch data from online source

查看:28
本文介绍了用于从在线源获取数据的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先发帖子。

我要做的就是获取数据,例如

< a href =" http://www.minorleaguebaseball.com/milb/stats/stats .JSP? sid = milb& t = g_log& gid = 2007_08_18_colaaa_tolaaa_1"> t他的< / a>

(仅限日志)自动下载。这是一个

< a href =" http://www.minorleaguebaseball.com/milb/stats/stats.jsp? t = t_sch& cid = 445"> Schedule< / a>链接到所有日志。

我读到perl可以''蜘蛛''数据。有没有办法让Perl获取我想要的所有文本?

谢谢

Hi, first post.
How I''m trying to do is get data like
<a href="http://www.minorleaguebaseball.com/milb/stats/stats.jsp? sid=milb&t=g_log&gid=2007_08_18_colaaa_tolaaa_1">t his</a>
(only the log) to download automactically. Here is a
<a href="http://www.minorleaguebaseball.com/milb/stats/stats.jsp? t=t_sch&cid=445">Schedule </a> that links to all the logs.
I read that perl can ''spider'' data. Is there a way to get Perl to fetch all the text that I am wanting?
Thanks

推荐答案

您好,欢迎来到脚本!


当然,Perl可以伪造数据,但你必须做一些编码。您可能想要开始阅读 LWP 如果你要从网页上抓取信息。


问候,


杰夫
Hello, and welcome to the scripts!

Sure, Perl can spider data, but you have to do some coding. You may want to start reading up on LWP if you are going to be grabbing information from web pages.

Regards,

Jeff

谢谢,但我想我在perl非常糟糕。我试图运行LWP程序没有任何反应。我做错了什么?
Thanks, but I guess I am really bad at perl. I am trying to run the LWP program put nothing happens. What am I doing wrong?


我真的不知道。看来你决定让你的源代码对每个人都保密。你为什么不发布你的代码和你看到的任何错误。


问候,


杰夫
I truly do not know. It seems you have decided to keep your source code a secret from everyone. Why don''t you post your code and any errors that you are seeing.

Regards,

Jeff


这篇关于用于从在线源获取数据的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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