NavigationUser loginscreen-scraper.com welcomes...
Currently online
There are currently 0 users and 0 guests online.
|
Tutorial 4: Page 3: Invoking screen-scraper from ASP
In order to invoke screen-scraper from ASP, screen-scraper needs to be running in server mode. If you'd like a refresher on how to start up screen-scraper in server mode go ahead and follow that link, then come back here. Okay, let's try it out before we go over the code. Download the shopping.asp file here, then save it to a directory where it will be web-accessible (i.e., within your IIS web dir). After that start up screen-scraper in server mode. Open up your web browser and go to the URL corresponding to the "shopping.asp" file (e.g, http://localhost/screen-scraper/shopping.asp). You'll see a simple search form. Type in a product keyword, such as "bug", then hit the "Go" button. If all goes well the page will take a little while to load (it's waiting as screen-scraper extracts the data), then it will output the corresponding products. If that didn't go quite as you expected here are some things to check:
Assuming that test worked, fire up your favorite ASP editor and open the "shopping.asp" file in it. The file is pretty heavily commented, so hopefully it makes sense what's going on. If not, try reviewing our COM documentation, posting to our forum, or sending us a support request. When you invoke screen-scraper as a server it creates log files corresponding to your scraping session in its "log" folder. Take a look in that folder for your "Shopping Site" log file and take a look through it. It should look similar to what you see when you run scraping sessions in the workbench.
|
SearchNew Video!Tags Throughout this Site |
Recent comments
13 hours 41 min ago
13 hours 48 min ago
15 hours 55 min ago
1 day 11 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 12 hours ago
1 day 12 hours ago
1 day 12 hours ago
3 days 9 hours ago