VS 2010 - Scraping Website That Uses Ajax
Nov 19, 2011
We have a site that was scraping a site to gather all models available of a product. The 3rd party site recently changed the website so it now uses ajax for users to select the manufacturer and then once they select that it loads a dropdown with products using ajax.
I currently was using httpwebrequest for all requests (see below).
Code:
Public Function fnRequest(ByVal sPOSTData As String, Optional ByVal bAutoRedirect As Boolean = False) As String
Dim uriSite As Uri
Dim sReturn As String
Dim srReader As StreamReader
Dim sTemp As String
[Code] ....
Now in fiddler the post appears to be done with ajax. I tried to send the post data the normal way but it didn't like that. Any example of how to do this? To get an idea go to [URL] ... and see Mount finder and select Projector.
View 5 Replies
Similar Messages:
Jul 6, 2010
I'm trying to php/curl scrape data from an .NET site (those with __VIEWSTATE, __EVENTVALIDATION). I monitor headers and post vars using Tamper Data so I'm pretty sure I haven't missed anything. My approach is to micmic the post back when the user click on one of the links and parse the response. But the response I'm getting is a page redirect to "Unable to validate data".
View 1 Replies
Apr 8, 2010
Every night I have a program that runs that creates a natural gas report. In this report is something called "expert analysis." The is just text which is a commentary of the current Natural Gas market and because it's a volatile market there is new commentary every day. So also every day, an employee in our office runs a public webpage which displays this text, copies and pastes it into a webpage that is part of our system and it gets saved to a file which gets pulled into our nightly report.
The page that is in our system is as ASP page and it uses FileUp to create the file. We want to break our dependancy on FileUp (it's a SoftArtisans product, an excellent vendor, but we are trying to save some money). Right now we don't have FileUp because our trial expired. So every day I run the public webpage and copy the text and paste it to my expert.txt file all manually. Another problem is that the expert analysis is updated after our office staff has all gone home,
Here is my question - can I write a program in .NET that runs a page, parses the resulting HTML and extracts out the expert analysis all automatically? I won't need FileUp anymore becaus I can use the .NET upload control. And I won't have to log on every night to manually copy and paste the expert analysis. Is that what web/screen scraping is? What happens then the public page's format changes because they do maintenance on their site? Is it just like if I were to run [URL] and try to read the Moderator column of the ASP.NET forum? I'd be okay for a while (would I?) but then if the layout changed I wouldn't find the Moderator anymore?
View 14 Replies
Nov 11, 2010
I am new to web programming. I am developing a web program using asp.net(vb) that scrapes data of a certain website. I am using System.Net.HttpWebRequest and System.Net.HttpWebResponse to read the HTTP codes.My problem is I can not retrieve the codes of certain frame/container where the data that I needed is located in the website.I understand that iframe has its own URL or link aside from the main URL of the website
View 1 Replies
Feb 7, 2011
Is there an ajax enabled website template?
View 7 Replies
May 12, 2010
Where is AJAx Website template in VS 2010 Ultimate?
View 4 Replies
Sep 6, 2010
I need to scrape a remote html page looking for images and links. I need to find an image that is "most likely" the product image on the page and links that are "near" that image. I currently do this with a javascript bookmarklet so that I am able to get the rendered x/y coordinates of images and links to help me determine if those are the ones that I want. What I want is the ability to get this information by just using a url and not the bookmarklet. The issues it that by using the url and trying something like httpwebrequest and getting the html on the server, I will not have location values since it wasn't rendered in a browser. I need the location of images and links to help me determine the images and links that I want.So how can I get html from a remote site on the server AND use the rendered location
View 3 Replies
Apr 29, 2010
I'm having difficulties scraping dynamically generated table in ASPX. Trying to scrape the gas prices from a site like this GasPrices. I can extract all the information in the gas price table (address, time submitted etc.), except for the actual gas price.
Is there a way I could scrape the gas prices? i.e. somehow get a text representation of it. I'm not very familiar with ASP/ASPX - but what's being generated now is not showing up in the final HTML. I'm using Python to do the scraping, but that's irrelevant unless there's a specific library...
View 1 Replies
Jul 13, 2010
trying to parse an excel file. its structure is very complex. The possible way i know are.
Use Office introp libraries
Use OLEDB provider and read excel file in a dataset.
But the issue is of its complexity like some columns,cells or rows blank etc.
What are the best possible ways to do this ?
View 5 Replies
May 11, 2010
I started working on a website using 2010 Express. However, the hosting company that I am using hasn't fully implemented .NET 4.0. I'm wondering if there is a way that I can save my website for compatability with 2008 express. Then I can finish and publis using 2008 Express.
View 1 Replies
Mar 18, 2010
I've created a web application in asp.net so far. where i've tried to get some data(site scraping) from secure page of a web site.I've used the HttpWebRequest class for this functionality but i haven't accessed the secure page yet. Every time the login pages was scraped not secure page.I have the site user id and password and don't know that which language site has been developed in.
View 1 Replies
Jan 7, 2010
I'm trying to write a small application to collect(Scrape) one piece of data from a web site. I would like to be able to simply run the app and it will open the page, find the one piece of data and display it. So far so good...my problem is that the web site is a secure site, meaning I have to provide a user name and password. I've searched all over the web, found many discussions but have yet to find anything that provides specifics on how to accomplish this. I understand a little bit about tokens etc, but I'm really looking for a detailed description of how to do this. Please feel free to direct me to a different forum if I'm in the wrong place.
View 3 Replies
Jan 18, 2010
I am building a site that need to scrape information from a partner site. Now my scraping code works great with other sites but not this one. It is a regular .html site. My thoughts is that it might be generated some how with php (site is build with php).
If it matters here is my code I use. The htmlDocument is htmlAgilityPack but that has nothing to do with it. Result is null on the site I try.
[Code]....
this is from the w3 validator, might have something with this? The site checked is this
[URL]
I am unable to validate this document because on line 422 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). check both the content of the file and the character encoding indication.
The error was: utf8 "xA9" does not map to Unicode""
View 4 Replies
Mar 18, 2010
I've created a web application in asp.net so far. where I've tried to get some data(site scraping) from secure page of a web site.I've used the HttpWebRequest class for this functionality but I haven't accessed the secure page yet. Every time
the login pages was scraped not secure page.I have the site user id and password and don't know that which language site has been developed in.
View 7 Replies
Aug 31, 2010
I need to screen scrape a web page and change its style to match the look and feel of the site where it will be displayed in. Is this possible? I'll be using asp.net to do the screen scraping.
View 1 Replies
Feb 24, 2010
I am working on a project that uses data scraping technique to retrieve some url links. I encounter this problem when i pass in the url of a [previous page button] link frm the html code and pass it in to httpWebRequest, the httpWebResponse that i get back is different form the actually content. i have been try to sovle this problem for days and no result, as anyone encounter similar problem and manage to sovle it? below is my sample code: [previous page button] [URL] note: i have change the domain name to a dummy address which is localhost
[Code]....
View 1 Replies
Jul 29, 2010
I seem to be having some challenges with the data I am retriveing from a Webpage using the Webclient class. The code works fine, however I observe that the regular expression is not picking up the negative or positive sign in the Daily_Movement data. For example, a daily movement can be -0.31 or +0.31 but the code is not picking the sign in front of the decimal values.Here is my code
[Code]....
I think where the problem lies is the part of the code Regex r1 = new Regex("<span class="quoteData">.*</span>"); It picks up the values between the tag quite well, but not the signs in front of it. [Code]....
View 6 Replies
Apr 16, 2012
I am wondering how I could implement a timeout feature in my website when after a period of non-inveracity from the user for example 20 minutes then this will redirect back to a timed out page? I'm using VB 2010
View 1 Replies
Apr 13, 2012
I have a drop down list on the website I'm currently working on and would like to filter the results displayed based on the logged in user.An example of what I'm wanting to do is, lets say Jane's logged into this site when she clicks onto the drop down list it will only display items based upon what is associated with her login name on the table I'm pointing this drop down list to. I'm linking this drop down list up using a Linq DataSource.
View 3 Replies
Dec 27, 2010
Our customer has several security cameras at their site. These cameras transmit rtmpe streams that can be accessed by using the proper url. The video itself is flv. What the customer want is the ability to view these cameras on a website, both from internet explorer, and windows mobile 6.5. How can we do this, is there some kind of component we can use that we simply can parse the rtmpe url to, and it will go fullscreen and show the video? We need to handle input as well, both from mouse and a remote control, and we planned to use javascript for that. But for now, our biggest concern is how to play the stream.
View 1 Replies
Jun 23, 2010
I am using a Formview for a simple website registration. When someone clicks insert, I need to grab the email value from the formview and send an email. Can someone tell me how to get the value of the EmailTextBox TextBox item from the formview when someone hits the insert button please? I am using VS2010, VB.
View 4 Replies
Jul 6, 2010
Ok, this might sound as a silly question, but I am a newbie without experience, and I am curious how stuff works, I am not for the "just works".
The default website generated by VWD2010 is documented somewhere? I searched in MSDN but no luck.
If i understand how it works, it would be better, to understand how login is implemented, the master page, and so on.
View 2 Replies
Dec 12, 2010
In VS 2010 I have created an ASP.NET website. When I press the green play button {Debug} the site runs on my local server fine with no errors at all.
Finally I was happy with the site, so I went and purchased Windows Shared Hosting. I got all the details ..etc
Then in VS 2010 I right-clicked on the solution and choose Publish Website. I enetered my ftp details .. it asked me for username and pass < I provided those and clicked OK.
All seemed fine ! the files transfered over to the server ..etc But for some reason I now get errors !
View 13 Replies
Aug 23, 2012
I tried to add the filp Counter To My WebSite To Count The Number Of Visitors Using (Css,Jquery,Js)...
This Is The Link Of Tutorial [URL] ....
View 9 Replies
May 8, 2012
I'm adding a shopping cart and catalog to my website and so I want to modify the menu. I was going to add a second menu right below the present menu so I would have two horizontal lines of items in the two menus. I added a second menu and a second sitemap with a different name and a second SiteMapDataSource(SiteMapDataSource2). When I test, the second menu uses the first sitemap. I don't see how to get SiteMapDataSource2 to use my new sitemap which I have named WebP.sitemap.
I could add to the items in the first sitemap but I have 5 items displaying horizontally and I wanted to start a new line. I don't see how to format it if there is a way to get a maximum of 5 items on the top line and then a new line of horizontal items.
View 2 Replies