从网站结果页面捕获价格 [英] Capturing the price from website results page

查看:43
本文介绍了从网站结果页面捕获价格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道你是否可以从网站上获取价格清单(在我的案例中是一个图书网站)。



与搜索提交中的不同可以看到代码是如何使用的,但是在结果页面上你不能这样。



这里有一个例子:



http://www.abebooks.com/servlet/SearchResults?bi=0&bx=off&ds=30&isbn=9781551927282&recentlyadded=all&sortby=2&sts=t& ; x = 46& y = 11 [ ^ ]



我想捕获它出现的第一个价格并将其与其他信息一起放入数据库。这可能吗? (我是新手,所以对我来说可能不那么明显)



我想我必须使用gridview才能做到这一点?



非常感谢。

Hi, I am wondering if you can capture the list of prices from a website (in my case a book website).

Unlike in the search submission you can see how the code is used but here at the results page you cant.

here is an example:

http://www.abebooks.com/servlet/SearchResults?bi=0&bx=off&ds=30&isbn=9781551927282&recentlyadded=all&sortby=2&sts=t&x=46&y=11[^]

I want to capture the first price it comes up and put it into a database along with other information. Is this possible? (im a newbie so it might not be so obvious for me)

I think I have to use gridview in order to this right?

thanks alot.

推荐答案

您需要使用网络爬虫/屏幕抓取工具。抓取,抓取和存储数据的行为与在页面上显示数据完全不同。



澄清:您需要抓取页面以获取数据我想。看看网站是否有您可以使用的API可能是值得的。





查看网络爬虫的本地示例:一个使用C#套接字的简单爬虫



使用C#for ASP.NET进行屏幕刮擦 [ ^ ]
You'll need to use a web crawler/screen scraper. The act of crawling, scraping and storing the data is completely separate from displaying this on your page.

Clarification: You'll need to scrape the page for the data you'd like. It may be worth while to see if the website has an API you can consume.


Check out a local example of a web crawler: A Simple Crawler Using C# Sockets

Screen Scraping with C# for ASP.NET[^]


我建立了 这个框架 [ ^ ]正好解决了这类问题并使用了很多成功在 this [ ^ ] app和 [ ^ ] app。



/ ravi
I built this framework[^] to solve exactly this class of problems and have used it with much success in this[^] app and this[^] app.

/ravi


这篇关于从网站结果页面捕获价格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆