Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27156

VS 2010 Get info from a websites source

$
0
0
Website source:
HTML Code:

Some random content
<div id="right" class="column">
  <div class="pane">
    <div class="pane_header"><h2>Site News & Events</h2></div>
      <div class="pane_content">
        <div id="news_feed">
          <div class='news_post'>
            <p class="news_post_topic"><a href="/example" title="example</a><br/>
            Posted <abbr class='timeago' title='2013-05-21 16:28:07'>05/21/2013</abbr></p>
          </div>
          <div class='news_post'>
            <p class="
news_post_topic"><a href="/example2" title="examples">
/example</a><br/>
            Posted <abbr class='timeago' title='2013-05-10 16:53:37'>05/10/2013</abbr></p>
          </div>
      </div>
    </div>
.....
Some more content

What i want:
Without any webbrowser window,(using webclient), search in all the code.
Find the id news_feed, and go to the first child, and get the websitelink, the title, and the date posted.
Then display the title, with the websitelink on a linklabel, and the dateposted on the label.
Then do the same foe the next news_post.
I believed it would look something like this, but i was wrong
WebBrowser1.Document.GetElementById("news_feed").AppendChild(1) ...[On this example i used webbrowser. I want it without it;) ]

Viewing all articles
Browse latest Browse all 27156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>