Welcome to WebmasterWorld Guest from 50.17.74.162

Forum Moderators: coopster & jatar k & phranque

Message Too Old, No Replies

Pulling info from a SE

     

1goodpuppy

4:26 am on Nov 29, 2003 (gmt 0)

10+ Year Member



Does anyone know how to go about pulling information from a search engine to be used in a script. for example, If I wanted to pull the total number of sites that came up when I searched Widgets on HotBot?

Thanks

jatar_k

9:37 pm on Nov 29, 2003 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Have you looked at LWP [perldoc.com]?

Just be careful with automated queries, the Search Engines don't take too kindly to it. If you start hammering the serp's they will notice.

bobbee

4:37 pm on Dec 1, 2003 (gmt 0)

10+ Year Member



I haven't scripted HotBot but:

Google has an API you can access w/ scripts (limited to 1k searches per day).

I have scripted queries to AltaVista by building the query into the URL & retrieving the results w/ fopen & then using Grep to parse out the hits of intererst.

I hope this helps,

Bob

sugarkane

11:45 pm on Dec 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I second jatar's suggestion of LWP

Basically, you use LWP to pull the SERP of your choice, then parse the returned content to pull out the info you need (usually done with regular expressions, but there are also several HTML parsing modules [search.cpan.org] that might fit the bill)

 

Featured Threads

Hot Threads This Week

Hot Threads This Month