+ Reply to Thread
Results 1 to 5 of 5

How to scrape through VBA

  1. #1
    Registered User
    Join Date
    04-08-2017
    Location
    Australia
    MS-Off Ver
    2017
    Posts
    9

    Post How to scrape through VBA

    I’m trying to scrape the following webpage https://crownbet.com.au/sports/soccer
    And yet it loads https://crownbet.com.au and does not copy paste anything into Excel
    Please Login or Register  to view this content.
    Also is there a way to make the data stop when no next button?

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: How to scrape through VBA

    amend
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    and it loads the correct page

    Can't help you with the rest, sorry.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: How to scrape through VBA

    Use below code to export source code to text file. You can then study what's been returned from web service.
    Please Login or Register  to view this content.
    It turns out that table is filled by function from JSON string.

    You can find meat of data after "app.module.zendesk.zendeskController"

    You can then use string manipulation to extract JSON string. Then use either RegExp, VBA-JSON or ScriptControl to parse JSON and output to Excel.

  4. #4
    Registered User
    Join Date
    04-08-2017
    Location
    Australia
    MS-Off Ver
    2017
    Posts
    9

    Re: How to scrape through VBA

    Hi CK76,

    It appears I just get a error of Run-time error '76' path not found when tryimng to post this code into excel

    Please Login or Register  to view this content.

  5. #5
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: How to scrape through VBA

    Please Login or Register  to view this content.
    As noted, change path if you don't have "C:\Test\" Folder.

+ 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. Scrape website using VBA
    By cfcMalky in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-26-2014, 08:59 PM
  2. Data Scrape from webpage
    By arnoldchadd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-16-2014, 07:31 AM
  3. Web Scrape Using Xpath
    By Keashan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-03-2014, 05:51 AM
  4. Need a more efficient way to use VBA to web scrape
    By Swannekin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-08-2013, 05:47 PM
  5. Web-Scrape with Login
    By jbarcenas in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2013, 01:40 AM
  6. Web Scrape
    By tobermory in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2012, 10:32 AM

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