i was able to screen scrape the whole page however, i only want to grab the traffic news which are in the table, is there any way that i could do that?
Displaying a web page on your own page using Screen Scraping <br /> <asp:Button ID="btnDisplay" runat="server" onclick="btnDisplay_Click" Text="Display webpage now" /> <br /> <br /> <asp:Label ID="lblWebpage" runat="server"></asp:Label>
</div> </form> </body> </html>
codes at my prac1.aspx.cs:
using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Net; //namespace for webclient using System.Text;
public partial class Prac1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) {
Question subject: Re: how to screen scrape or grab some parts of a website?
Posted: Sat Jun 27, 2009 8:25 am
Joined: Wed Apr 15, 2009 7:18 am Posts: 32 Has thanked: 0 time Have thanks: 0 time
i was able to screen scrape the whole page however, i only want to grab the traffic news which are in the table, is there any way that i could do that?
Try it now. This particular script seems to have been written just for you :-) It is open source. I did not write it, but I have been using it and other biter scripts.
Hope this helps. I am assuming you are getting this data only for your personal use and not to republish.