SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast xarzu's Avatar
    Join Date
    Apr 2007
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do you "scrape" a web page?

    How do you "scrape" a web page?

    I would like to know how to use C# in Silverlight or some other coding method to "scrape" a web page and get an image. This can be used on a web page to preview a link. If it is not possible to do in Silverlight, I would like to do it in WPF.

  2. #2
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,625
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Check out System.Net.WebClient and System.Net.WebRequest to request web pages and files. Parsing is the real trick, the best place to start is the HtmlAgilityPack.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •