+ Reply to Thread
Results 1 to 17 of 17

pulling off data from website

  1. #1
    Registered User
    Join Date
    10-13-2012
    Location
    newcastle
    MS-Off Ver
    Excel 2007
    Posts
    68

    pulling off data from website

    Hi,

    I am trying to pull off data from the following webpage

    http://www.bmreports.com/bsp/SystemPricesHistoric.htm

    I would like to pull off all the data in the table, i have tried a webquery and that hasnt seem to work. clicking on the csv red box at the top hasnt really helped either, and besides i would like an automated process which i will work on after i can pull off the data from site.

    Could someone please help?

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: pulling off data from website

    It appears there is no data available on the website so that would explain the problem.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: pulling off data from website

    Hello squirrely,

    The table you want is a Frame element named "bottom". This Frame is an empty document that contains a place holder for the table. It will be filled in by a Java servlet after the date has been selected and validated. I don't believe VBA has access to the server side, only the client side.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: pulling off data from website

    As far as I can see, the data is being pulled in via Ajax from this url:
    http://www.bmreports.com/bsp/additio...&dT=2012-05-21
    Where dT is the date, that being said, I can't actually see the data in the web page

  5. #5
    Registered User
    Join Date
    10-13-2012
    Location
    newcastle
    MS-Off Ver
    Excel 2007
    Posts
    68

    Re: pulling off data from website

    Quote Originally Posted by Kyle123 View Post
    As far as I can see, the data is being pulled in via Ajax from this url:
    http://www.bmreports.com/bsp/additio...&dT=2012-05-21
    Where dT is the date, that being said, I can't actually see the data in the web page
    Hi Thanks for your reply, what can i do to get the data then? is it possible?

  6. #6
    Registered User
    Join Date
    10-13-2012
    Location
    newcastle
    MS-Off Ver
    Excel 2007
    Posts
    68

    Re: pulling off data from website

    Quote Originally Posted by Leith Ross View Post
    Hello squirrely,

    The table you want is a Frame element named "bottom". This Frame is an empty document that contains a place holder for the table. It will be filled in by a Java servlet after the date has been selected and validated. I don't believe VBA has access to the server side, only the client side.
    Any ideas what i can do?

  7. #7
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: pulling off data from website

    Please don't quote whole posts, it clutters up the thread. Have you tried doing a web query to the link I posted?

  8. #8
    Registered User
    Join Date
    10-13-2012
    Location
    newcastle
    MS-Off Ver
    Excel 2007
    Posts
    68

    Re: pulling off data from website

    I have tried it although it requires quite a clean up, perhaps i can do this with VBA after i pulled it in.

  9. #9
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: pulling off data from website

    Can you provide the output of how you would like it to look in a workbook, I'll have a fiddle and sort something out for you

  10. #10
    Registered User
    Join Date
    10-13-2012
    Location
    newcastle
    MS-Off Ver
    Excel 2007
    Posts
    68

    Re: pulling off data from website

    Hi Kyle,

    How did you know it was pulled in from the URL you quoted, there are some other pages on that website i would like pulling in also and i dont want to keep on having to ask so how to do this would be much appreciated?

  11. #11
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: pulling off data from website

    Open developer tools in Chrome, select a date in the top part as normal, run the report then have a ferret through the Network tab in the chrome developer tools. It will be one of the top couple, you'll see that when you click on a request, you can see the data that was sent as well as the response received. In your case that xml looked the most promising

  12. #12
    Registered User
    Join Date
    10-13-2012
    Location
    newcastle
    MS-Off Ver
    Excel 2007
    Posts
    68

    Re: pulling off data from website

    very clever! I am going to send you a file shortly

  13. #13
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: pulling off data from website

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  14. #14
    Registered User
    Join Date
    10-13-2012
    Location
    newcastle
    MS-Off Ver
    Excel 2007
    Posts
    68

    Re: pulling off data from website

    Hi Kyle, i have attached the file with some notes.

    Cheers
    Attached Files Attached Files

  15. #15
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: pulling off data from website

    How's this?
    Please Login or Register  to view this content.
    You'll need to change the name of the output sheet accordingly

  16. #16
    Registered User
    Join Date
    10-13-2012
    Location
    newcastle
    MS-Off Ver
    Excel 2007
    Posts
    68

    Re: pulling off data from website

    This looks ace, exactly what I wanted. Your a star.

  17. #17
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: pulling off data from website

    Glad it helped

+ 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. Pulling data from a website
    By hockeyadc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-14-2012, 10:39 AM
  2. Pulling off Data from website into excel
    By Lisa4legin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-06-2012, 07:52 AM
  3. pulling data from website
    By Amar Thakkar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2011, 08:05 AM
  4. Pulling information from Website to Excel 2003
    By Andy-SysEngr in forum Excel General
    Replies: 2
    Last Post: 07-11-2008, 09:57 PM
  5. Pulling data from website
    By inoexcel in forum Excel General
    Replies: 3
    Last Post: 07-28-2007, 07:02 PM

Tags for this Thread

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