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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pulling content from other sites

Status
Not open for further replies.

halis

Programmer
Joined
Apr 5, 2007
Messages
2
Location
US
Okay, I have CGI.pm and LWP::Simple installed.

So I pull the source for a page like this:
$content = get("
My question is in two parts, I have a site where you have to select from a list which state you want to view, when you get to the page for the state, the link shown is the same no matter what state you pick.

Question #1: How can I pick a particular state and automatically retrieve that page, in a script?

Also, when you get to the state page, there are links to items like this:
javascript:itemSel('234234234234');

Question #2: How can I go into that link and retrieve the page, in a script?

Once I have the pages I need, I can use regular expressions to do whatever I wish with the info. Thanks!
 
Hard to say without seeing this page you are talking about.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
gsaauctions.gov
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top