S
Selden McCabe
I've been working on a web scraping program, and have the basics down.
But I don't understand the parameters.
Normally, you go to a URL (say a reverse yellow pages directory), and enter
some parameters (like area code, phone number, etc.) and POST this back to
the web. Then you parse the response, looking for the data you need.
Ofen I see examples where the data you post contains something like
"AreaCode=503&Number=5551212&x=1&y=2"
Where do the "x=1 and y=2" come from? I have some sites where my post
doesn't work. In one case, you are supposed to enter a contractor's license
number, and then click a button, and the result contains information about
the license. After I post what I think should work, the result coming back
is the same web page, with the contractor's number filled in.
Do the X and Y parameters involve invoking a button? How do you determine
what to use for the parameters?
Thanks in advance for any advice or pointers!
---Selden McCabe
But I don't understand the parameters.
Normally, you go to a URL (say a reverse yellow pages directory), and enter
some parameters (like area code, phone number, etc.) and POST this back to
the web. Then you parse the response, looking for the data you need.
Ofen I see examples where the data you post contains something like
"AreaCode=503&Number=5551212&x=1&y=2"
Where do the "x=1 and y=2" come from? I have some sites where my post
doesn't work. In one case, you are supposed to enter a contractor's license
number, and then click a button, and the result contains information about
the license. After I post what I think should work, the result coming back
is the same web page, with the contractor's number filled in.
Do the X and Y parameters involve invoking a button? How do you determine
what to use for the parameters?
Thanks in advance for any advice or pointers!
---Selden McCabe