Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to download a multi page search on yahoo?

Status
Not open for further replies.

dontay

Programmer
Jan 22, 2003
49
US
Hi,
I'm not a perl programer but it looks like I might need a perl script to do what I'm trying to do.
When I run a search on Yahoo,maps,business, Health Food, it brings up multiple pages that the query finds. The manual way for me to save that information is to copy and paste it into MS Word. The problem is that it takes to much time to copy each page and paste it into Word.
My question is: What is a simple way to copy all the information from the results at one time?
Any ideas are apreciated.

Don
 
Hi,
* You need LWP perl module to submit queries and read the content of result.

* There's a thread in this forum on the same subject with google search. May be it can help.

for you script you have to identify the syntax of submit search url.
In your program you have to submit your query using GET method, available in LWP module.
Identify the syntax of get result page url, here is a sample for a yahoo search of "perl programmer" keywords
Code:
<a href="[URL unfurl="true"]http://rds.yahoo.com/S=2766679/K=perl+programmer/v=2/SID=e/l=WPGN/R=2/*-http://search.yahoo.com/search?p=perl+programmer&ei=UTF-8&cop=mss&fr=FP-tab-web-t&b=21"[/URL] title="Results 21 - 40">2</a>&nbsp;
Submit your query for the desired page.

* Yahoo does'nt seem to display the number of result pages. b parameter is the number of the result with wich starts the page.

If you need more details please tell.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top