Why is httpwebrequest result different from page source viewed through browser?

I am trying to use httpwebrequest to download the page source code from Yahoo Finance pages, e.g., https://ca.finance.yahoo.com/q/op?s=AA&m=2015-04
The httpwebrequest method returns much less information than the page returned by using "page source " in Firefox. How can I use visual basic to return the full page of data?
Thanks

It is most likely because the page is executing some java script to obtain the additional content, or there are additional links which need to be traversed.
But it doesn't really matter because you are not allowed to build a program that scrapes a Yahoo website.  When you use their services you agree to their terms, and within their terms it states "You agree not to access the Yahoo Services by any
means other than through the interface that is provided by Yahoo for use in accessing the Yahoo Services."
This is common for most major websites.  If the website wants to provide programmatic access to its content, then it will provide an official API for that purpose.  You may wish to review their
Developer Network and see if there are any options for programmatic access to their financial data.
Reed Kimble - "When you do things right, people won't be sure you've done anything at all"

Similar Messages

  • Cost Analysis result different from the cost estimate quantity structure re

    Hi
    Cost Analysis result different from the cost estimate quantity structure result in the same costing
    run why this happen like this. ( in CK40N costing run result -- Cost analysis -- double click on costing result it shows cost estimate quantity structure result values different from cost analysis value )
    Pls advice....
    Regards
    Kesharika

    It depends on your costing variant. For sample, if you take the price in the 1° price estimated on the material view and this data has changed, you can have a difference between the first and the second estimate.
    Perhaps also, it's just a definition of layout.
    And 3rd hypothesis : you are looking on component in the ck40n and the variant don't take in account your cost component and just the material price.
    Christophe

  • Why can I not print from pages but can if I copy to text edit, I get "printer off line message " from pages ?

    Why can I not print from pages but can if I copy to text edit, I get "printer off line message " from pages ?  I use HP wireless printer .

    Are you sure you have the right printer?
    In UNIX/OSX printers are virtual links to devices and even with the same name can be trying to reach a printer via another network address, so it thinks it is another printer.
    Peter

  • Bug in Page source view

    In Page Source view in 32-bit Firefox 3.6 under Windows, if there is a URL in the source code that is erroneously not closed with a quote, for example:
    <a href="http://mozilla.com>The Mozilla' site</a>
    (Note absence of quote after .com)
    And you reload the source view, it loads the source of the page in the URL instead.
    In normal page view, leaving off the quote will cause the link not to be displayed, so it is a common reason to open source view and try to identify the problem.

    You can disable the context highlighting if you find that distracting. In this case it should make noticing that something is wrong more easily though. A link starts with a quote and ends with a quote and everything between the two is considered the link. If the second quote is omitted then it is the choice of the developer on how to deal with it. Either not to interpret the text in between (you may even have forgotten to HTML escape some characters &amp;quote; &amp;lt;) or try to catch up in case you forgot a closing quote. Both can have their disadvantages in case of an error from you.

  • Page that is uploaded to the server looks different from the preview in Dreamweaver browser

    Hi, I have a couple of questions.  Does anyone happen to know why my homepage looks different in Dreamweaver when I preview in browser then it does when I upload the page onto the server?  http://www.iewaterkeeper.org/  I see a join our mailing list button is intact when I preview in browser but is no where to be found when I view the uploaded page from the server.  Other weird things have been going on with Dreamweaver today like I wasn't able to absolute position a div tag in it's intended place and all the typography on my homepage looks very blurry in Dreamweaver but looks clearer when it's uploaded to the server.  Does anyone know what's going on?  Any help would be greatly appreciated.  .... Could it be a virus?

    That's so weird because I'm looking at the code in Dreamweaver and line 181 has a closing </body>.   Here's the code straight from Dreamweaver: 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Inland Empire Waterkeeper</title>
    <link href="_css/styles.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    body,td,th {
        color: #999999;
        font-family: Verdana, Geneva, sans-serif;
    body {
        background-color: #FFFFFF;
        color: #D6D6D6;
        background-image: url(_images/background_1255hompage.png);
        background-repeat: repeat-x;
        margin: auto;
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    </style>
    </head>
    <body>
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    <div class="container">
      <div class="header"><img src="_images/banner1.jpg" alt="Inland Empire Waterkeeper" width="933" height="300" /></div>
      <div class="menubar">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="index.html" class="MenuBarItemSubmenu">Home</a>
            <ul>
              <li><a href="mission.html" class="MenuBarItemSubmenu">About Us</a>
                <ul>
                  <li><a href="mission.html">Our Mission</a></li>
                  <li><a href="history.html">Our History</a></li>
                  <li><a href="community.html">Our Community</a></li>
                </ul>
              </li>
              <li><a href="staff.html" class="MenuBarItemSubmenu">Our Team</a>
                <ul>
                  <li><a href="staff.html">Staff</a></li>
                  <li><a href="supporters.html">Supporters</a></li>
                  <li><a href="advisoryboard.html">Advisory Board</a></li>
                </ul>
              </li>
              <li><a href="coastkeeper.html">Coastkeeper</a></li>
            </ul>
          </li>
          <li><a href="projects.html" class="MenuBarItemSubmenu">What We Do</a>
            <ul>
              <li><a href="advocacy.html" class="MenuBarItemSubmenu">Programs</a>
                <ul>
                  <li><a href="advocacy.html">Advocacy</a></li>
                  <li><a href="education.html">Education</a></li>
                  <li><a href="research.html">Research</a></li>
                  <li><a href="restoration.html">Restoration</a></li>
                  <li><a href="enforcement.html">Enforcement</a></li>
                </ul>
              </li>
              <li><a href="projects.html">Projects</a></li>
              <li><a href="datareports.html">Data &amp; Reports</a></li>
            </ul>
          </li>
          <li><a href="volunteer.html" class="MenuBarItemSubmenu">Get Involved</a>
            <ul>
              <li><a href="volunteer.html">Volunteer</a></li>
              <li><a href="employment.html">Employment</a></li>
              <li><a href="events.html">Events &amp; Meetings</a></li>
              <li><a href="donate.html">Donate</a></li>
            </ul>
          </li>
          <li><a href="pressreleases.html" class="MenuBarItemSubmenu">News Room</a>
            <ul>
              <li><a href="pressrelease.html">In the News and Press Releases</a></li>
              <li><a href="legislation.html">Legislative Updates</a></li>
              <li><a href="waternews.html">Water in the News</a></li>
            </ul>
          </li>
          <li><a href="reportpollution.html" class="MenuBarItemSubmenu">Resources</a>
            <ul>
              <li><a href="watershed.html" class="MenuBarItemSubmenu">Information</a>
                <ul>
                  <li><a href="watershed.html">Our Watershed</a></li>
                  <li><a href="reportpollution.html">Report Pollution</a></li>
                </ul>
              </li>
              <li><a href="photos.html">Photo Gallery</a></li>
            </ul>
          </li>
          <li><a href="contact.html">Contact Us</a></li>
        </ul>
      </div>
        <div class="missionstatement"><img src="_images/mssionstatement.gif" alt="Inland Empire Waterkeeper" width="933" height="110" /></div>
    <div class="space1"><img src="_images/bar_left.png" alt="Inland Empire Waterkeeper" width="20" height="315" /></div>
    <div class="facebook">
          <div class="facebooktop">
          <img src="_images/facebooktop.gif" width="106" height="125" alt="Inland Empire Waterkeeper" /></div>
        <div class="facebookmailinglist">
        <div class="fb-like" data-href="http://www.iewaterkeeper.org/" data-send="true" data-width="106" data-show-faces="false"></div>
    <!-- BEGIN: Constant Contact Standard Email List Button -->
    <div align="center">
    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td><img src="https://imgssl.constantcontact.com/ui/images/visitor/bevel_tl_gray.gif" width="6" height="6" alt=""></td>
    <td background="https://imgssl.constantcontact.com/ui/images/visitor/bevel_bg_top_gray.gif"> </td>
    <td><img src="https://imgssl.constantcontact.com/ui/images/visitor/bevel_tr_gray.gif" width="6" height="6" alt=""></td>
    </tr>
    <tr>
    <td background="https://imgssl.constantcontact.com/ui/images/visitor/bevel_bg_left_gray.gif"></td>
    <td bgcolor="#cccccc"><a href="http://visitor.r20.constantcontact.com/d.jsp?llr=wejp69bab&p=oi&m=1101488694422" target="_blank" style="text-decoration:none; font-weight: bold;  font-family:Arial; font-size:10px; color:#336666;">Join Our Email List</a></td>
    <td background="https://imgssl.constantcontact.com/ui/images/visitor/bevel_bg_right_gray.gif"></td>
    </tr>
    <tr>
    <td><img src="https://imgssl.constantcontact.com/ui/images/visitor/bevel_bl_gray.gif" width="6" height="6" alt=""></td>
    <td background="https://imgssl.constantcontact.com/ui/images/visitor/bevel_bg_bottom_gray.gif"> </td>
    <td><img src="https://imgssl.constantcontact.com/ui/images/visitor/bevel_br_gray.gif" width="6" height="6" alt=""></td>
    </tr>
    </table>
    </div>
    <!-- END: Constant Contact Standard Email List Button -->
        </div>   
        <div class="space2"><img src="_images/bar_right.png" width="21" height="315" alt="Inland Empire Waterkeeper" /></div>
       <div class="video"><iframe width="560" height="315" src="http://www.youtube.com/embed/3OU8D8kBjWg" frameborder="0" allowfullscreen></iframe></div>
        <div class="space3"></div>
        <div class="photospace1"></div>
        <div class="photo1"><a href="_images/kayaking_6lg.png"><img src="_images/kayaking_6.jpg" alt="Inland Empire Waterkeeper" width="176" height="95" /></a></div>
        <div class="photospace2"></div>
        <div class="photo2"><a href="_images/riverkat_57lg.png"><img src="_images/riverkat_57.jpg" width="176" height="95" alt="Inland Empire Waterkeeper" /></a></div>
        <div class="photospace3"></div>
        <div class="photo3"><a href="_images/riverkat_172lg.png"><img src="_images/riverkat_172.jpg" width="176" height="95" alt="Inland Empire Waterkeeper" /></a></div>
        <div class="photospace4"></div>
        <div class="space4"></div>
      <div class="pillars"><img src="_images/pillars_grey.jpg" alt="Inland Empire Waterkeeper Pillars" width="933" height="400" border="0" usemap="#Map" />
        <map name="Map" id="Map">
          <area shape="rect" coords="77,54,297,198" href="advocacy.html" alt="Inland Empire Waterkeeper Advocacy" />
          <area shape="rect" coords="361,51,584,195" href="education.html" alt="Inland Empire Waterkeeper Education" />
          <area shape="rect" coords="636,54,858,196" href="research.html" alt="Inland Empire Waterkeeper Research" />
          <area shape="rect" coords="212,220,430,352" href="restoration.html" alt="Inland Empire Waterkeeper Restoration" />
          <area shape="rect" coords="502,222,726,364" href="enforcement.html" alt="Inland Empire Waterkeeper Enforcement" />
        </map>
      </div>
      <div class="footer"><img src="_images/footer2.png" width="933" height="100" alt="Inland Empire Waterkeeper" /></div>
    </div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>

  • Why idoc number is different from sending to target?

    The number of the same idoc is different from source system and target system...do you know why?
    what's it the procedure to calculate the new number?

    Hi Sleep,
      The Idoc number is specific to the system . It is unique inside a system.
    For example, the sales Order for a vendor will become a Purchase order for the company. Also, the Idocs are not always sent by SAP systems, non sap systems can send IDOCS as well, so to avaoid confusion, SAP generates a uniques number everytime it recieves a IDOC.
    Regards,
    Ravi

  • Print layout is different from the working view.

    I got two calendars in iCal, marked with red and green. I always make the green ones as the first one on everyday and the red ones as the second. However, when I printed the scheduled month, some red ones were in the upper positions and it looked different from my screen.
    How can I make all the green ones as the first event in the printed version.

    You can make objects visible only on the screen by selecting Object => Presence => Visible (Screen Only). You can do the same for printing by selecting the Visible (Print Only) option.
    Hope this helps,
    Mike

  • How to removed dashed lines from "Page Break View"?

    Hi,
    In Excel 2010, I found that once “Page Break View” is selected, there will be dashed lines across the view even after returning to “Normal” view. These dashed lines can be distracting.
    Is there a way to remove them?
    Bob

    Yes use
    File -> Options -> Advanced
    Scroll down to Display options for this worksheet and remove the tick in Show Page breaks.
    Unfortunately it's sheet specific so you'll have to do it everytime it happens until you've done all the sheets.
    Unless you develope some VB to do it for you,
    G North MCT

  • Why are my photos different from originals in iPhoto 9.5.1?

    Hi
    I import photos from my iPhone 5S, if I then hit 'revert to original' in 'Edit' mode they look very different? Why is this?
    Is the iPhone or iPhoto adding certain qualities before I have done anything myself?
    I want to use the photos for a website and want them to look as good as possible across the web, different computers/screens/software etc
    Thanks in advance
    Daniel

    I import photos from my iPhone 5S, if I then hit 'revert to original' in 'Edit' mode they look very different? Why is this?
    Is the iPhone or iPhoto adding certain qualities before I have done anything myself?
    With iOS version are you using?  And in what way are your photos looking different?
    "Revert to original" will remove any filters added in the Camera app. iPhoto on your Mac can undo certain adjustments added on the iPhone.
    Have you enabled effects in the Camera, like Chrome or Instant?

  • Why are saturation results different than Matlab's imhist() function?

    We have a machine vision application where we had set some threshold levels in Matlab, and had planned on applying them to NI's IMAQ libraries. However, when trying to reproduce a set of Matlab results to verify our VB code was working, we found that we could reproduce Matlab's results on the R, G, B, and H planes, but not the S plane.
    For example, if you take the 50% red image at http://www.cae.tntech.edu/~mwr/red-50.png and load it into both Vision Builder and Matlab, you get the following results:
    Matlab:
    rgb=imread('red-50.png');
    hsv=rgb2hsv(rgb);
    [hist_s,bins]=imhist(hsv(:,:,2),101);
    bins(find(hist_s==max(hist_s)))
    ans =
    0.5000
    Vision Builder 6.0.5:
    Load red-50.png
    Extract Col
    or Planes: HSL - Saturation Plane
    Histogram -> results in a peak in bin 64 on a 0-255 scale.
    How many different ways are there to calculate saturation? So far, Matlab and Corel Photo-Paint agree on their calculations, and Vision Builder is the odd one.

    Mike,
    Thank you for posting on the forum. We spoke regarding this question, but I wanted to reply to this post with some information for other readers. You can see how we are calculating the HSL plane by examining the equations in the Vision Concepts Manual. Using the formulas, I was able to confirm that we are calculating the value for the HSL plane from the equation listed there:
    S = 255(1-3min(R,G,B)/(R+G+B))
    where R, G, and B in this equation are normalized. So given an RGB image (255,127,127) then we get the following values:
    S = 255(1-(3*.5)/(2))
    S = 63.75
    I also created an image in just MS Paint with the RGB values of (255,127,127) and that gave me HSL values of (0,240,180) -- or in MS Word HSL values of (0,255,191). These latter values match
    ed the HSI values returned from LabVIEW (using the IMAQ ColorHistogram VI).
    Regards,
    Michael
    Applications Engineer
    National Instruments

  • Why is the playback different from the preview?

    It's display on the same monitor, but clearly the playback looks so much different than the export preview
    I also tried taking a snapshot and it doesn't look like the one displayed on the project monitor.

    You know, I find most commercial DVD's to be about +3dB higher, than for my other input settings. I always have to turn the volume down...
    When editing my Audio, I always do so with headphones, and carefully monitor the output Audio. I do this by ear, and only glance at the Levels Meters. In general, my Master is probably most often set to -3dB, and for Menus, and for my surround channels, I am usually ~ -6dB, but this all depends on the Levels of my source material. It is not uncommon to have a Track at -18dB, especially if it's used in a Menu, or is in my surround channels.
    I'd almost always rather turn UP the home theater's volume, than have to run to turn it down, as the house is blown off its foundation.
    What I absolutely hate is the commercial DVD, where the Center channel is way down, but the SFX in the LFE channel is up by about +12dB. I almost blew out my walls on Fight Club, with the airplane crash scene. Just totally painful. SFX pieces do not need to be THAT loud. Just a pet peeve of mine.
    I also find that too many burned DVD's (by others) have the Menu Audio much, much too high, as do some commercial DVD's. That Audio should be nothing more than "background" music.
    Good luck,
    Hunt

  • Why is the result different

    **the only different point is whether or not the construct function has "void
    "keyword,but the result is completely different,who can give me an answer ,thanks.
    *the result: a[1234]=0
    public class SynTest4
    static int a[]=new int[10000];
    public void SynTest4()
    synchronized(a)
    for (int i=0; i<10000; i++) { a[i]=i; }
    public static void main(String[] args)
    new SynTest4();
    System.out.println("a[1234]= "+a[1234]);
    *the result:a[1234]=1234
    public class SynTest4
    static int a[]=new int[10000];
    public SynTest4()
    synchronized(a)
    for (int i=0; i<10000; i++) { a[i]=i; }
    public static void main(String[] args)
    new SynTest4();
    System.out.println("a[1234]= "+a[1234]);
    }

    A constructor has no return type. If you create a method with a return type, it is not a constructor. If you create a class without a constructor, the compiler will automatically create a default constructor.
    So, your "public void SynTest4()" is a normal method, not a constructor.

  • How can I have pages 2 - 12 different from page 1 using Page Layout?

    I am following your suggestion re Page Layout mode.
    I designed text boxes for page 1 but the header for pages 2 - 12 is smaller. This is actually the only difference. But when I attempted to make the text box for the header smaller on page 2, it made the text box header smaller on page 1.
    With the stubling block, I am still using Word Processor and have discovered that some of locked text boxes have disappeared.

    Govan,
    For your newsletter layout, I suggest that you not use "headers and footers" word processor features. Just put a text box on each page where you want header information. This way you will not have to worry about using different sizes on different pages.
    Jerry

  • Font looks different from page to page - InDesign

    The font looks BOLD in page 1 but looks correct in page 2/3.  The font is exactly the same (from what I can tell).  It also seems to be a page thing, because I can drag the font to page 2/3 and it looks correct.  Drag it back to page 1 and it looks bold.

    Is there an image, or an element with an applied effect on the page that is displaying a bold font? If so, try putting the text on its own separate layer.
    As a side note, in the future you'll get quicker and more useful help on questions regarding specific problems by posting in the primary product forums. The InDesign forum can be found here: http://forums.adobe.com/community/indesign

  • AVI files - Search results different from Smart Album

    I've noticed that when I use the iPhoto Search to filter all movies (.AVI files) that all my clips come up (eg. 700 clips in 2007). However, with a Smart Album I have set up to display the .AVI files, the last several weeks of clips seem to be missing (eg. 630 clips from the 2007 album). I've checked all the Smart Album criteria and they are correct. Is this a glitch in iPhoto or is there some other explanation?

    macblueduck
    Two possibilities:
    1. There's something different in the later files that don't match the criteria of the search
    or
    2. Spotlight (as it is this that indexes the Library) is not working correctly. Try opening the Spotlight Preference Pane and go to the Privacy section. Drag the Pictures Folder in there, leave it a few moments and then drag it out again. This should force Spotlight to re-index the Folder.
    Regards
    TD

Maybe you are looking for

  • Error while creating New WebDynpro Project

    hi friend .. i am not able to create WebDynPro Rpoject in NWDS.. when i am giving the directory name and project name, then getting following error .. error:---com/sap/ide/webdynpro/generation/eclipse/GenerationEclipse thanks.. Narpal

  • Problem in accessing Data Source Deployed in JBoss using JNDI

    Hi everybody! I need your help in the next question: I have created a data source to connect to my MySql data base using the following entry in mysql-ds.xml (JBOSS 3.2.5) <datasources>     <local-tx-datasource>         <jndi-name>MySqlDS</jndi-name>

  • Submit button via email isn't working as expected

    I've read everything I can find and tried all the suggestions. I have a fairly simple form I'd like to post on a community council site for the community members to complete online then submit or print to fax or mail. The Submit button returns an err

  • Inventory days of supply bex report

    Hi experts, I am working on inventory days of supply bex report which i would like some help on. I do know that we have a standard query for this,however i feel standard wont fit the requirement completely. We have around 3-4 plants. Each plant will

  • Solaris 9 syslog messages are IP not hostname

    I am trying to setup Solaris 9 to forward its syslog messages to a central server, and its working fine except the logs being sent have the IP address and not the hostname. Is there a way to change this? Thanks