由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - how to extract the search results of this page
相关主题
请大家帮忙看一下:关于AJAX 中加入“Pleas wait... ” messagegoogle地图问题
click?google mail问题
other urls Re: 怎么设置可以看到CODE?online calendar 问题
谁能帮我一个大忙,先万分感谢!A collection of AJAX-based apps here
如何让一个域名完全镜像另外一个域名?用getURL+DOM能不能算ajax
[转载] Ajaxhelp me urgent!
protopage with AJAXAnybody using prototype.js?
Ajax-based IM: meeboWritely网站设计语言
相关话题的讨论汇总
话题: page话题: links话题: search话题: abc话题: extract
进入BuildingWeb版参与讨论
1 (共1页)
l*******9
发帖数: 177
1
http://www.seoprotoolz.com/tools/collector/quick.php
search any keyword will give you a list of links, but
when I open the source of this page. The div element
with id="div1" always display empty. those links should
be generated by Google AJAX API. How can I grab these
links.. //thanks
o*o
发帖数: 404
2
if you only need one page, save the page as html file,
you will get those links in that file.
if you need batch process, you have to pick up a script
language to parse it.

【在 l*******9 的大作中提到】
: http://www.seoprotoolz.com/tools/collector/quick.php
: search any keyword will give you a list of links, but
: when I open the source of this page. The div element
: with id="div1" always display empty. those links should
: be generated by Google AJAX API. How can I grab these
: links.. //thanks

l*******9
发帖数: 177
3
I did save the result page, it doesnot show any URLs in the
URL list shown in my web browser.. I tried Perl WWW::Mechanize
and the result I got is the same as I saw in notepad.. No URLs
are saved? Anything wrong? Any other things involved besides AJAX??
//thanks

【在 o*o 的大作中提到】
: if you only need one page, save the page as html file,
: you will get those links in that file.
: if you need batch process, you have to pick up a script
: language to parse it.

o*o
发帖数: 404
4
If you check the link in your browser in detail, you will find all links
refer to the page itself. When you click a link, it's actually a Js call
but with different POST paras.

【在 l*******9 的大作中提到】
: I did save the result page, it doesnot show any URLs in the
: URL list shown in my web browser.. I tried Perl WWW::Mechanize
: and the result I got is the same as I saw in notepad.. No URLs
: are saved? Anything wrong? Any other things involved besides AJAX??
: //thanks

l*******9
发帖数: 177
5
Do you know how can I do this in Perl script, I cannot use a real
browser. I did submit the form with "POST" method, say
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
use LWP::UserAgent;
my $ua = LWP::UserAgent->new();
my $ret = $ua->post(
"http://www.seoprotoolz.com/tools/collector/quick.php",
[ myQuery => "abc" ]
);
die $ret->status_line if not $ret->is_success;
print Dumper $ret;
__END__
the result content doesnot contain any URL.. any hints?
I need to grab these URLs an

【在 o*o 的大作中提到】
: If you check the link in your browser in detail, you will find all links
: refer to the page itself. When you click a link, it's actually a Js call
: but with different POST paras.

l*******9
发帖数: 177
6
In fact, If I search "abc", what I really need is just the
list of text as follows:
abc news
abc kids
abc family
abc tv
abc distributing
abc radio
abc lost
abc warehouse
abc bingo
abcarcade
......
not the links, but how can I get this list with a Perl script..:)
//thanks

【在 l*******9 的大作中提到】
: Do you know how can I do this in Perl script, I cannot use a real
: browser. I did submit the form with "POST" method, say
: #!/usr/bin/perl
: use strict;
: use warnings;
: use Data::Dumper;
: use LWP::UserAgent;
: my $ua = LWP::UserAgent->new();
: my $ret = $ua->post(
: "http://www.seoprotoolz.com/tools/collector/quick.php",

o*o
发帖数: 404
7
use regular expression.

【在 l*******9 的大作中提到】
: In fact, If I search "abc", what I really need is just the
: list of text as follows:
: abc news
: abc kids
: abc family
: abc tv
: abc distributing
: abc radio
: abc lost
: abc warehouse

l*******9
发帖数: 177
8
The problem is I dont have the source which contains the
text I need..:( or none of the above listed entries can be
found in the saved page or $ret->content of my code.

【在 o*o 的大作中提到】
: use regular expression.
l*******9
发帖数: 177
9
the search string will be provided from the command line, so
I can not copy/past the list from a browser. I need a web
automation code.

【在 l*******9 的大作中提到】
: The problem is I dont have the source which contains the
: text I need..:( or none of the above listed entries can be
: found in the saved page or $ret->content of my code.

o*o
发帖数: 404
10
your query string is not correct.

【在 l*******9 的大作中提到】
: Do you know how can I do this in Perl script, I cannot use a real
: browser. I did submit the form with "POST" method, say
: #!/usr/bin/perl
: use strict;
: use warnings;
: use Data::Dumper;
: use LWP::UserAgent;
: my $ua = LWP::UserAgent->new();
: my $ret = $ua->post(
: "http://www.seoprotoolz.com/tools/collector/quick.php",

l*******9
发帖数: 177
11
why do i need query string? I am using post, not get. :)

【在 o*o 的大作中提到】
: your query string is not correct.
o*o
发帖数: 404
12
I meant query array
try replace this line
with
[xajax => 'getKeywords', xajaxargs[] => 'myQuery=abc xjxquery>']
l*******9
发帖数: 177
13
nice, this did the tricks :) thanks a lot.

【在 o*o 的大作中提到】
: I meant query array
: try replace this line
: with
: [xajax => 'getKeywords', xajaxargs[] => 'myQuery=abc: xjxquery>']

1 (共1页)
进入BuildingWeb版参与讨论
相关主题
Writely网站设计语言如何让一个域名完全镜像另外一个域名?
how to do this?[转载] Ajax
HTML 问题一个。protopage with AJAX
请教:JavaScript怎么复制一个node(含子节点)? (转载)Ajax-based IM: meebo
请大家帮忙看一下:关于AJAX 中加入“Pleas wait... ” messagegoogle地图问题
click?google mail问题
other urls Re: 怎么设置可以看到CODE?online calendar 问题
谁能帮我一个大忙,先万分感谢!A collection of AJAX-based apps here
相关话题的讨论汇总
话题: page话题: links话题: search话题: abc话题: extract