There is a website which shows history of lottery numbers. I want to retrieve numbers from the page, by using C# Windows or Web program(ASP.NET).
有一个网站显示彩票号码的历史。我想通过使用C#Windows或Web程序(ASP.NET)从页面中检索数字。
There is a problem that, after selecting the week which you want numbers for from dropdownlist, page does not post. Numbers are retrieved by Ajax.
有一个问题,在从下拉列表中选择您想要数字的周后,页面不会发布。数字由Ajax检索。
How can I get numbers for all of the weeks by program?
如何通过计划获得所有星期的数字?
3 个解决方案
#1
0
If there isn't any official API provided You should be aware of possible legal issues.
如果没有提供任何官方API您应该了解可能的法律问题。
O.K. I understood You know what You are doing, so this is my hint: http://en.wikipedia.org/wiki/Web_scraping
好。我知道你知道你在做什么,所以这是我的暗示:http://en.wikipedia.org/wiki/Web_scraping
#2
0
I've used WatiN to interact with Ajax websites and scrape the relevant data before.
我曾经使用WatiN与Ajax网站进行交互,并在之前搜索相关数据。
Another option is to monitor the site with something like Fiddler and determine whether you can make the relevant server call directly.
另一个选择是使用Fiddler之类的东西来监控站点,并确定是否可以直接进行相关的服务器调用。
#3
0
what you can do is to imitate the ajax requests. you can use HttpWebRequest Class for that
你能做的就是模仿ajax请求。你可以使用HttpWebRequest Class
#1
0
If there isn't any official API provided You should be aware of possible legal issues.
如果没有提供任何官方API您应该了解可能的法律问题。
O.K. I understood You know what You are doing, so this is my hint: http://en.wikipedia.org/wiki/Web_scraping
好。我知道你知道你在做什么,所以这是我的暗示:http://en.wikipedia.org/wiki/Web_scraping
#2
0
I've used WatiN to interact with Ajax websites and scrape the relevant data before.
我曾经使用WatiN与Ajax网站进行交互,并在之前搜索相关数据。
Another option is to monitor the site with something like Fiddler and determine whether you can make the relevant server call directly.
另一个选择是使用Fiddler之类的东西来监控站点,并确定是否可以直接进行相关的服务器调用。
#3
0
what you can do is to imitate the ajax requests. you can use HttpWebRequest Class for that
你能做的就是模仿ajax请求。你可以使用HttpWebRequest Class