+ Reply to Thread
Results 1 to 6 of 6

Web Scrape XMLHTTP60 vs InternetExplorer,Application

  1. #1
    Registered User
    Join Date
    01-30-2017
    Location
    toronto
    MS-Off Ver
    2013
    Posts
    4

    Web Scrape XMLHTTP60 vs InternetExplorer,Application

    Hey guys I am trying to use XMLHTTP60 instead of internetexplorer.application as i'm having time issues.

    I can access the "span" that im trying to access but it returns "###"
    I know that the order is fine and that the code works as i can successfully query ("span")(1 or 2) using both subs, and i get the same answer.


    running the ImportBullionDeskBid() should give you the answer im trying to get, yet i can't figure out why the xmlsample() doesnt work.

    Any suggestion is welcome

    Please Login or Register  to view this content.
    Last edited by greensky2; 01-31-2017 at 08:02 PM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Web Scrape XMLHTTP60 vs InternetExplorer,Application

    My poor guess is IE can work and pick any Non English characters including images, but not HTTP.

  3. #3
    Registered User
    Join Date
    01-30-2017
    Location
    toronto
    MS-Off Ver
    2013
    Posts
    4

    Re: Web Scrape XMLHTTP60 vs InternetExplorer,Application

    Hi AB33,

    It is actually a number that I trying to scrape.
    Cheers.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Web Scrape XMLHTTP60 vs InternetExplorer,Application

    Yes, I know, but HTTP is not recognising that number. In fact, I tried to get all the data in the table and got the same #### result. Even if I extract the entire line( Tag), the bit with the number still shows as ####.

  5. #5
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,855

    Re: Web Scrape XMLHTTP60 vs InternetExplorer,Application

    This is due to the fact "###" is just a place holder for the numbers filled by script.
    You can use FireBug or other similar tools to debug the site and trace what actions are taking place.

    For an example. Below is URL the request is sent to...
    https://www.bulliondesk.com/fmdatacache/

    Parameters are as below image.
    Param.JPG

    So to get info you want, you need to use GET method with URL & below string concatenated.
    Please Login or Register  to view this content.
    When you send the request. You will get response like below.
    Please Login or Register  to view this content.
    IE is able to return value, as when the site URL response is loaded to IE.
    Script fires and fills values in appropriate container.

    EDIT: On this site, charts are also drawn using Javascript, using JSON format string. You can obtain various values from there as well.
    Also note that script is fired every few seconds and numbers are updated in real time. It may be of interest to read historical value... or delve deeper in source code to allow more dynamic query using parameters.
    Last edited by CK76; 01-31-2017 at 09:06 AM. Reason: See Edit:

  6. #6
    Registered User
    Join Date
    01-30-2017
    Location
    toronto
    MS-Off Ver
    2013
    Posts
    4

    Re: Web Scrape XMLHTTP60 vs InternetExplorer,Application

    Hey guys,
    Thanks for the help.

    @ CK76, thanks for the clarification regarding the response. I went with the ?sym=XAU!XAG!XPT!XPD&fld=B!A!CH!BT&zz=319897461801&__=1485866332384&ts=31-Jan-2017+12%3A38:43

    Left and right the result, and it works likes a charm.

    Thanks
    Last edited by greensky2; 01-31-2017 at 07:59 PM. Reason: Typo

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Resources for using IHTMLElement and InternetExplorer objects and their methods
    By joe31623 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-29-2015, 01:59 PM
  2. trying to select a dropdown in internetexplorer
    By kate2000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-23-2015, 11:04 AM
  3. Website Message Box by Automating InternetExplorer with VBA Excel
    By VBATOexcel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-17-2013, 02:33 AM
  4. Debug at Set oIE = CreateObject("InternetExplorer.Application")
    By Kiran Kurapati in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-02-2013, 05:19 AM
  5. Win7 / IE9 / InternetExplorer.Application.Quit
    By Phil_V in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2011, 12:43 PM
  6. InternetExplorer
    By Q.Rhodes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2006, 04:38 PM
  7. CreateObject("InternetExplorer.Application")
    By shart in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-02-2006, 01:14 PM

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1