+ Reply to Thread
Results 1 to 2 of 2

website scrapiplping to get data from multiplepages of website

  1. #1
    Registered User
    Join Date
    01-29-2014
    Location
    Pune
    MS-Off Ver
    2010
    Posts
    6

    Thumbs up website scrapiplping to get data from multiplepages of website

    Helllo,

    I am a very basic learner of vba coding of website scrapping, I want to get data from the website having multiple pages. I am using below code for that but getting data only of 1 page.

    Code is as per below

    Please Login or Register  to view this content.
    above macro is recoded macro but I tried to change area "WebTables = """SitePH_grdSociety"""with page number but its extracting data only of one page

    Thanks in advance

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: website scrapiplping to get data from multiplepages of website

    Can be done in one macro, but not with the method you're using.
    You'll have to use winhttprequest5.1 or xmlhttp to get the response and what I can quickly see from the site, you'll have to send the request x times for x number of pages. I don't see the entire table content, but to be honest I haven't looked thoroughly.

    The code below would get you the first page (like you have already), but would need adjustment from GET to POST and adjusted body content to get the other pages.

    Please Login or Register  to view this content.
    Unless someone writes you the entire scraper, my guess is that it's beyond your current capabilities to get this out.

+ 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. Getting data from Website
    By erguntmzkn in forum Excel General
    Replies: 12
    Last Post: 02-18-2015, 05:14 AM
  2. Averageif WILDCARD for website.com AND EXCLUDE website.com.xx
    By Gerhard.Angeles in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-14-2014, 09:12 AM
  3. Opening website, getting data, closing website
    By beta_leonis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2012, 03:50 AM
  4. Get data from website
    By adamgrier in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-28-2012, 01:17 PM
  5. HYPERLINK("website/"Cell.Text"website, A4)
    By keepstar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-17-2010, 05:17 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