I need a script that can:
1. Read/scrape [login to view URL];fn=&lid=&re=130&cy=us&JSNONREG=1&pg=1&sort=dt using the function "GetMonsterContent" below.
2. There should be 50 <div id="JobRslt" class="result_item"> </div> sections. There are five <div>'s within each <div id="JobRslt" class="result_item"> </div> section: jobTitle, jobCompany, jobPostDate_Dist, MasterPage1_CenterContent__ctlResultsFlat_rptResults__ctl49_lblMiles and jobLocation. Isolate everything between the five <div> tags for each of these 50 jobs and strip out all HTML -- except for in the jobTitle <div> where I need to know href (put that string into the jobURL variable).
3. Assign each text string to a variable (jobTitle, jobURL, jobCompany, jobPostDate and jobLocation), then output each variable (jobTitle, jobURL, jobCompany, jobPostDate and jobLocation) to the ASP.
4. Loop through all the <div>'s on the page and output them all to the screen.
The entire script should be in vbscript ASP. It should degrade gracefully if anything it encounters isn't working properly. Try it for other [login to view URL] searches, please.
I look forward to working with you. I need it done tonight.
Function GetMonsterContent(page)
On Error Resume Next
strUrl = "[login to view URL]"
Set objXMLHttp = [login to view URL] ("[login to view URL]")
[login to view URL] "GET", strUrl, False
[login to view URL]
If [login to view URL] = 0 Then
If [login to view URL] = 200 then
GetMonsterContent = [login to view URL]
Else
GetMonsterContent = "Error"
End if
Else
GetMonsterContent = "Error"
End If
Set objXMLHttp = Nothing
End Function