{"id":580,"date":"2019-03-09T23:34:45","date_gmt":"2019-03-09T23:34:45","guid":{"rendered":"http:\/\/www.vbastring.com\/blog\/?p=580"},"modified":"2019-03-09T23:47:13","modified_gmt":"2019-03-09T23:47:13","slug":"website-scraping-vba-code-to-import-data-from-website-to-excel","status":"publish","type":"post","link":"https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/","title":{"rendered":"Website Scraping &#8211; VBA Code To Import Data From Website To Excel"},"content":{"rendered":"<p>I am going to show you 2 ways of scraping data from a website.  One with the standard approach and 1 with JSON.<\/p>\n<p>For this example, I want the stock numbers from yahoo in my worksheet.<\/p>\n<p>The site is <a href=\"https:\/\/finance.yahoo.com\/quote\/%5EGSPC\/history?period1=1520575200&#038;period2=1552111200&#038;interval=1d&#038;filter=history&#038;frequency=1d\" rel=\"noopener noreferrer\" target=\"_blank\">https:\/\/finance.yahoo.com\/quote\/%5EGSPC\/history?period1=1520575200&#038;period2=1552111200&#038;interval=1d&#038;filter=history&#038;frequency=1d<\/a><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.vbastring.com\/blog\/wp-content\/uploads\/2019\/03\/excel-vba-pull-data-from-a-website.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.vbastring.com\/blog\/wp-content\/uploads\/2019\/03\/excel-vba-pull-data-from-a-website-300x272.png?resize=300%2C272\" alt=\"\" width=\"300\" height=\"272\" class=\"alignleft size-medium wp-image-582\" \/><\/a><\/p>\n<p>This data is rendered in a table format so I can use the following code to bring it back to my worksheet:<\/p>\n<pre class=\"lang:vb decode:true \" >Sub ScrapeSite()\r\n    '3\/8\/18 - this is really laggy and slow!\r\n    Dim appIE As Object\r\n    Set appIE = CreateObject(\"InternetExplorer.Application\")\r\n    \r\n    'navigate to the site\r\n    With appIE\r\n        .navigate \"https:\/\/finance.yahoo.com\/quote\/%5EGSPC\/history?p=%5EGSPC\"\r\n        '.Visible = True\r\n    End With\r\n    \r\n    ' Wait while the page is loading\r\n    Do While appIE.Busy\r\n        DoEvents\r\n    Loop\r\n\r\n    Dim Table As Object\r\n    Dim tRows As Object\r\n    Dim tCols As Object\r\n    \r\n    Dim tRow As Object\r\n    Dim tCol As Object\r\n        \r\n    Dim intExcelCol As Integer\r\n    Dim intExcelRow As Integer\r\n    \r\n    Set Table = appIE.document.getElementsByTagName(\"table\")\r\n    \r\n    \r\n    'these debug statements are to tell us where we are in the process.\r\n    Debug.Print \"Set table...\"\r\n    \r\n    'Get the rows\r\n    'set tRows = Table(0).getElementsByTagName(\"tr\")\r\n    \r\n    'sometimes the code stalls and receives an error, but just check your internet connection and rerun the procedure.\r\n    \r\n    'Debug.Print \"Got Rows...\"\r\n    \r\n    'Get the column headings which use the \"td\" tag\r\n    Set tCols = Table(0).getElementsByTagName(\"td\")\r\n    \r\n    Debug.Print \"Got Columns...\"\r\n    \r\n    intExcelRow = 2\r\n    intExcelCol = 1\r\n    \r\n    For Each tCol In tCols\r\n        'after filling in 8 columns move to the next row\r\n        If intExcelCol &lt;= 7 Then\r\n            ' Output the contents of the cell to the spreadsheet\r\n            Debug.Print tCol.innerText\r\n            Sheet1.Cells(intExcelRow, intExcelCol) = tCol.innerText\r\n        \r\n            'Increase the intExcelCol value so the next time around the data will output to the next column\r\n            intExcelCol = intExcelCol + 1\r\n        Else\r\n            intExcelRow = intExcelRow + 1\r\n            intExcelCol = 0\r\n            \r\n            Debug.Print \"Row: \" &amp; intExcelRow\r\n            \r\n        End If\r\n    Next\r\n\r\n    \r\n    \r\n    appIE.Quit\r\n    \r\n    Set tRow = Nothing\r\n    Set tRows = Nothing\r\n    Set tCol = Nothing\r\n    Set tCols = Nothing\r\n    \r\n    Set appIE = Nothing\r\n\r\n    MsgBox \"Done\"\r\n    \r\nEnd Sub\r\n<\/pre>\n<p><strong>This method worked buy was very clunky and slow.<\/strong>  <\/p>\n<p>One of the big things with web scraping involves getting the tables and rows in the table, and then returning the items back to your sheet, and that&#8217;s what the example above does.<\/p>\n<p>This slow and sketchy method wouldn&#8217;t work for me.  So I needed another way.  <\/p>\n<p>The data I want is really just a JSON string.  <\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.vbastring.com\/blog\/wp-content\/uploads\/2019\/03\/excel-vba-pull-data-from-a-website2.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.vbastring.com\/blog\/wp-content\/uploads\/2019\/03\/excel-vba-pull-data-from-a-website2-300x164.png?resize=300%2C164\" alt=\"\" width=\"300\" height=\"164\" class=\"alignleft size-medium wp-image-586\" \/><\/a><\/p>\n<p>JSON supposedly replaced XML as a standard way of transferring data. <\/p>\n<p>Anyway that&#8217;s fine, but Yahoo is speedily rendering stock quotes via a JSON string.  <\/p>\n<p>So what we are looking for is the data after the &#8220;HistoricalPriceStore&#8221; text.  If you want to know if you are dealing with a proper JSON string, paste your string into <a href=\"http:\/\/json.parser.online.fr\/\" rel=\"noopener noreferrer\" target=\"_blank\">http:\/\/json.parser.online.fr\/<\/a><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.vbastring.com\/blog\/wp-content\/uploads\/2019\/03\/excel-vba-pull-data-from-a-website3.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.vbastring.com\/blog\/wp-content\/uploads\/2019\/03\/excel-vba-pull-data-from-a-website3-300x206.png?resize=300%2C206\" alt=\"\" width=\"300\" height=\"206\" class=\"alignleft size-medium wp-image-589\" \/><\/a><\/p>\n<p>So, yes, that assessment is correct.  So you can use the following faster code to scrape the information:<\/p>\n<pre class=\"lang:vb decode:true \" >Sub ParseMultipleRowsJSON()\r\n\r\n    Dim http As New XMLHTTP 'ms xml object library 3.0\r\n    Dim html As New HTMLDocument 'ms html object library\r\n    \r\n    Dim varResponse As Variant\r\n    Dim dict As Dictionary  'reference ms scripting runtime for this\r\n    \r\n    Dim intJSONRows As Integer\r\n    Dim intJSONCols As Integer\r\n    \r\n    Dim strDate As String\r\n    \r\n    strurl = \"https:\/\/finance.yahoo.com\/quote\/%5EGSPC\/history?p=%5EGSPC\"\r\n    \r\n    'json online parser at: http:\/\/json.parser.online.fr\/ (to see if your text is a valid json string)\r\n    \r\n    With http\r\n        .Open \"GET\", strurl, False\r\n        .send\r\n        'varResponse(1) has the json string\r\n        varResponse = Split(.responseText, \"HistoricalPriceStore\"\":\")\r\n        \r\n    End With\r\n    \r\n    'this is using the JsonConverter.bas found at https:\/\/github.com\/VBA-tools\/VBA-JSON (just copy and paste into a module)\r\n    Set dict = ParseJson(varResponse(1))\r\n    \r\n    'initialize the excel destination vars\r\n    intExcelRow = 2\r\n    intExcelCol = 1\r\n    \r\n    Set JSONRowsCollection = dict(\"prices\")\r\n    For intJSONRows = 1 To JSONRowsCollection.Count\r\n        \r\n        Set JSONColsCollection = JSONRowsCollection(intJSONRows)\r\n        'For intJSONCols = 1 To JSONColsCollection.Count\r\n            'If intExcelCol &gt; 7 Then\r\n            '    intExcelCol = 1\r\n            'Else\r\n             \r\n             \r\n             '(((A1\/60)\/60)\/24)+DATE(1970,1,1) - convert the unix date to regular number 43532.60417\r\n\r\n             strdate1 = JSONColsCollection(\"date\") \/ 60 \/ 60 \/ 24\r\n             strDate = strdate1 + DateValue(\"1\/1\/1970\")\r\n             'now format the date as date\r\n             \r\n             \r\n            Sheet1.Cells(intExcelRow, 1) = strDate 'Unix Timestamp date - need to convert\r\n            Sheet1.Cells(intExcelRow, 2) = JSONColsCollection(\"open\")\r\n            Sheet1.Cells(intExcelRow, 3) = JSONColsCollection(\"high\")\r\n            Sheet1.Cells(intExcelRow, 4) = JSONColsCollection(\"low\")\r\n            Sheet1.Cells(intExcelRow, 5) = JSONColsCollection(\"close\")\r\n            Sheet1.Cells(intExcelRow, 6) = JSONColsCollection(\"volume\")\r\n            Sheet1.Cells(intExcelRow, 7) = JSONColsCollection(\"adjclose\")\r\n                'Debug.Print JSONColsCollection(\"date\")\r\n            'End If\r\n            \r\n            'intExcelCol = intExcelCol + 1\r\n            \r\n        'Next intJSONCols\r\n        \r\n        intExcelRow = intExcelRow + 1\r\n    Next intJSONRows\r\n    \r\n    'clean up\r\n    Set http = Nothing\r\n    Set html = Nothing\r\n\r\nEnd Sub<\/pre>\n<p>Your end product should look like this:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.vbastring.com\/blog\/wp-content\/uploads\/2019\/03\/excel-vba-pull-data-from-a-website4.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.vbastring.com\/blog\/wp-content\/uploads\/2019\/03\/excel-vba-pull-data-from-a-website4-300x199.png?resize=300%2C199\" alt=\"\" width=\"300\" height=\"199\" class=\"alignleft size-medium wp-image-590\" \/><\/a><\/p>\n<p>(no, I didn&#8217;t author all of this code, I got the ideas from various places on the internet, and put all the &#8220;pieces&#8221; together \ud83d\ude42 .  So kudos to all those wonderful people out there, which share their knowledge with us. Thanks!)<\/p>\n<p>Let me know if you have any questions.<\/p>\n<p>****************************************************<\/p>\n<table border=\"1\" width=\"100%\">\n<tr>\n<td align=\"middle\">\n<div class=\"AW-Form-1094354588\"><\/div>\n<p><script type=\"text\/javascript\">(function(d, s, id) {\n    var js, fjs = d.getElementsByTagName(s)[0];\n    if (d.getElementById(id)) return;\n    js = d.createElement(s); js.id = id;\n    js.src = \"\/\/forms.aweber.com\/form\/88\/1094354588.js\";\n    fjs.parentNode.insertBefore(js, fjs);\n    }(document, \"script\", \"aweber-wjs-kkrwj13ov\"));\n<\/script>\n<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>I am going to show you 2 ways of scraping data from a website. One with the standard approach and 1 with JSON. For this example, I want the stock numbers from yahoo in my worksheet. The site is https:\/\/finance.yahoo.com\/quote\/%5EGSPC\/history?period1=1520575200&#038;period2=1552111200&#038;interval=1d&#038;filter=history&#038;frequency=1d This data is rendered in a table format so I can use the following code [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","om_disable_all_campaigns":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-580","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Website Scraping - VBA Code To Import Data From Website To Excel - My Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Website Scraping - VBA Code To Import Data From Website To Excel - My Blog\" \/>\n<meta property=\"og:description\" content=\"I am going to show you 2 ways of scraping data from a website. One with the standard approach and 1 with JSON. For this example, I want the stock numbers from yahoo in my worksheet. The site is https:\/\/finance.yahoo.com\/quote\/%5EGSPC\/history?period1=1520575200&#038;period2=1552111200&#038;interval=1d&#038;filter=history&#038;frequency=1d This data is rendered in a table format so I can use the following code [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/\" \/>\n<meta property=\"og:site_name\" content=\"My Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-09T23:34:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-03-09T23:47:13+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.vbastring.com\/blog\/wp-content\/uploads\/2019\/03\/excel-vba-pull-data-from-a-website-300x272.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/2019\\\/03\\\/09\\\/website-scraping-vba-code-to-import-data-from-website-to-excel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/2019\\\/03\\\/09\\\/website-scraping-vba-code-to-import-data-from-website-to-excel\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/#\\\/schema\\\/person\\\/e1de0b30e98940381697872449c341f5\"},\"headline\":\"Website Scraping &#8211; VBA Code To Import Data From Website To Excel\",\"datePublished\":\"2019-03-09T23:34:45+00:00\",\"dateModified\":\"2019-03-09T23:47:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/2019\\\/03\\\/09\\\/website-scraping-vba-code-to-import-data-from-website-to-excel\\\/\"},\"wordCount\":290,\"image\":{\"@id\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/2019\\\/03\\\/09\\\/website-scraping-vba-code-to-import-data-from-website-to-excel\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.vbastring.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/excel-vba-pull-data-from-a-website-300x272.png\",\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/2019\\\/03\\\/09\\\/website-scraping-vba-code-to-import-data-from-website-to-excel\\\/\",\"url\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/2019\\\/03\\\/09\\\/website-scraping-vba-code-to-import-data-from-website-to-excel\\\/\",\"name\":\"Website Scraping - VBA Code To Import Data From Website To Excel - My Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/2019\\\/03\\\/09\\\/website-scraping-vba-code-to-import-data-from-website-to-excel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/2019\\\/03\\\/09\\\/website-scraping-vba-code-to-import-data-from-website-to-excel\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.vbastring.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/excel-vba-pull-data-from-a-website-300x272.png\",\"datePublished\":\"2019-03-09T23:34:45+00:00\",\"dateModified\":\"2019-03-09T23:47:13+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/#\\\/schema\\\/person\\\/e1de0b30e98940381697872449c341f5\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/2019\\\/03\\\/09\\\/website-scraping-vba-code-to-import-data-from-website-to-excel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vbastring.com\\\/blog\\\/2019\\\/03\\\/09\\\/website-scraping-vba-code-to-import-data-from-website-to-excel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/2019\\\/03\\\/09\\\/website-scraping-vba-code-to-import-data-from-website-to-excel\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.vbastring.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/excel-vba-pull-data-from-a-website-300x272.png\",\"contentUrl\":\"http:\\\/\\\/www.vbastring.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/excel-vba-pull-data-from-a-website-300x272.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/2019\\\/03\\\/09\\\/website-scraping-vba-code-to-import-data-from-website-to-excel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Website Scraping &#8211; VBA Code To Import Data From Website To Excel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/\",\"name\":\"My Blog\",\"description\":\"My WordPress Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/#\\\/schema\\\/person\\\/e1de0b30e98940381697872449c341f5\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b2feaa698a4bd91b409df1beb5ff6acc2d7842d4f78543d413ebd468bc0171af?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b2feaa698a4bd91b409df1beb5ff6acc2d7842d4f78543d413ebd468bc0171af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b2feaa698a4bd91b409df1beb5ff6acc2d7842d4f78543d413ebd468bc0171af?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/vbastring.com\\\/blog\"],\"url\":\"https:\\\/\\\/vbastring.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Website Scraping - VBA Code To Import Data From Website To Excel - My Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/","og_locale":"en_US","og_type":"article","og_title":"Website Scraping - VBA Code To Import Data From Website To Excel - My Blog","og_description":"I am going to show you 2 ways of scraping data from a website. One with the standard approach and 1 with JSON. For this example, I want the stock numbers from yahoo in my worksheet. The site is https:\/\/finance.yahoo.com\/quote\/%5EGSPC\/history?period1=1520575200&#038;period2=1552111200&#038;interval=1d&#038;filter=history&#038;frequency=1d This data is rendered in a table format so I can use the following code [&hellip;]","og_url":"https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/","og_site_name":"My Blog","article_published_time":"2019-03-09T23:34:45+00:00","article_modified_time":"2019-03-09T23:47:13+00:00","og_image":[{"url":"http:\/\/www.vbastring.com\/blog\/wp-content\/uploads\/2019\/03\/excel-vba-pull-data-from-a-website-300x272.png","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/#article","isPartOf":{"@id":"https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/"},"author":{"name":"admin","@id":"https:\/\/vbastring.com\/blog\/#\/schema\/person\/e1de0b30e98940381697872449c341f5"},"headline":"Website Scraping &#8211; VBA Code To Import Data From Website To Excel","datePublished":"2019-03-09T23:34:45+00:00","dateModified":"2019-03-09T23:47:13+00:00","mainEntityOfPage":{"@id":"https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/"},"wordCount":290,"image":{"@id":"https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/#primaryimage"},"thumbnailUrl":"http:\/\/www.vbastring.com\/blog\/wp-content\/uploads\/2019\/03\/excel-vba-pull-data-from-a-website-300x272.png","inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/","url":"https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/","name":"Website Scraping - VBA Code To Import Data From Website To Excel - My Blog","isPartOf":{"@id":"https:\/\/vbastring.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/#primaryimage"},"image":{"@id":"https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/#primaryimage"},"thumbnailUrl":"http:\/\/www.vbastring.com\/blog\/wp-content\/uploads\/2019\/03\/excel-vba-pull-data-from-a-website-300x272.png","datePublished":"2019-03-09T23:34:45+00:00","dateModified":"2019-03-09T23:47:13+00:00","author":{"@id":"https:\/\/vbastring.com\/blog\/#\/schema\/person\/e1de0b30e98940381697872449c341f5"},"breadcrumb":{"@id":"https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/#primaryimage","url":"http:\/\/www.vbastring.com\/blog\/wp-content\/uploads\/2019\/03\/excel-vba-pull-data-from-a-website-300x272.png","contentUrl":"http:\/\/www.vbastring.com\/blog\/wp-content\/uploads\/2019\/03\/excel-vba-pull-data-from-a-website-300x272.png"},{"@type":"BreadcrumbList","@id":"https:\/\/vbastring.com\/blog\/2019\/03\/09\/website-scraping-vba-code-to-import-data-from-website-to-excel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vbastring.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Website Scraping &#8211; VBA Code To Import Data From Website To Excel"}]},{"@type":"WebSite","@id":"https:\/\/vbastring.com\/blog\/#website","url":"https:\/\/vbastring.com\/blog\/","name":"My Blog","description":"My WordPress Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vbastring.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/vbastring.com\/blog\/#\/schema\/person\/e1de0b30e98940381697872449c341f5","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b2feaa698a4bd91b409df1beb5ff6acc2d7842d4f78543d413ebd468bc0171af?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b2feaa698a4bd91b409df1beb5ff6acc2d7842d4f78543d413ebd468bc0171af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b2feaa698a4bd91b409df1beb5ff6acc2d7842d4f78543d413ebd468bc0171af?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/vbastring.com\/blog"],"url":"https:\/\/vbastring.com\/blog\/author\/admin\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/vbastring.com\/blog\/wp-json\/wp\/v2\/posts\/580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vbastring.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vbastring.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vbastring.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vbastring.com\/blog\/wp-json\/wp\/v2\/comments?post=580"}],"version-history":[{"count":5,"href":"https:\/\/vbastring.com\/blog\/wp-json\/wp\/v2\/posts\/580\/revisions"}],"predecessor-version":[{"id":601,"href":"https:\/\/vbastring.com\/blog\/wp-json\/wp\/v2\/posts\/580\/revisions\/601"}],"wp:attachment":[{"href":"https:\/\/vbastring.com\/blog\/wp-json\/wp\/v2\/media?parent=580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vbastring.com\/blog\/wp-json\/wp\/v2\/categories?post=580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vbastring.com\/blog\/wp-json\/wp\/v2\/tags?post=580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}