+ Reply to Thread
Results 1 to 8 of 8

Problem with automation of data extraction from HTML web page

  1. #1
    Forum Contributor
    Join Date
    04-28-2016
    Location
    Stavanger, Norway
    MS-Off Ver
    365
    Posts
    142

    Problem with automation of data extraction from HTML web page

    I am currently using my script to extract information from various webpages with very similar layout and type of information, som examples;
    http://faktaark.naturbase.no/naturtype?id=BN00058122
    http://faktaark.naturbase.no/naturtype?id=BN00087722
    http://faktaark.naturbase.no/naturtype?id=BN00067722

    So I made this script;
    Please Login or Register  to view this content.
    The issue here is that I have coded it to extract the information from "dd" at the 22end line BUT I just noticed that
    its not always the same. On other links the wanted data might be at "dd" at the 21st line! Which is a big problem.
    Also the paragraph with text that I am wanting does not seem to have a name, see picture;

    dd.noname.JPG


    Can anyone tell me how I can always select the appropiate dd without saying which line its on, if its possible?

    Thanks

  2. #2
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: Problem with automation of data extraction from HTML web page

    In IE the meaning is the same, walk in a loop through elements and find the right.
    Please Login or Register  to view this content.
    Last edited by kalbasiatka; 05-10-2016 at 08:54 AM.
    To do it for me and help me it is 2 different things!
    Sorry for my english, blame Google translator

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Problem with automation of data extraction from HTML web page

    Assuming you are looking for the Naturtyper description:

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Forum Contributor
    Join Date
    04-28-2016
    Location
    Stavanger, Norway
    MS-Off Ver
    365
    Posts
    142

    Re: Problem with automation of data extraction from HTML web page

    Quote Originally Posted by kalbasiatka View Post
    In IE the meaning is the same, walk in a loop through elements and find the right.
    Please Login or Register  to view this content.

    So I tried to merge your and my script so that I can find different HTML links in my document and automate it, but its all posted into the same cell. How can I fix that?

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-28-2016
    Location
    Stavanger, Norway
    MS-Off Ver
    365
    Posts
    142

    Re: Problem with automation of data extraction from HTML web page

    Quote Originally Posted by Arkadi View Post
    Assuming you are looking for the Naturtyper description:

    Please Login or Register  to view this content.
    Ah wow, next level! ^^
    Is it possible to get it to paste the data it finds on the Webpage hyperlinks all in the same rows as the corresponding hyperlinks in their own column. For example; A hyperlink might be located in cell "K2" for example and another one in "J7", I would like to paste their corresponding data output in "M2" and "M7" respectively?

    Thanks

  6. #6
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: Problem with automation of data extraction from HTML web page


    Do not need to connect these codes
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Problem with automation of data extraction from HTML web page

    Change:
    Please Login or Register  to view this content.
    to:
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    04-28-2016
    Location
    Stavanger, Norway
    MS-Off Ver
    365
    Posts
    142

    Re: Problem with automation of data extraction from HTML web page

    Quote Originally Posted by Arkadi View Post
    Change:
    Please Login or Register  to view this content.
    to:
    Please Login or Register  to view this content.
    Awesome, that worked! thanks man

+ 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. Reflections X 12.0 FTP Automation & Extraction
    By elmarko123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2013, 11:45 AM
  2. Complicated data extraction problem
    By PersonInOffice in forum Excel General
    Replies: 2
    Last Post: 10-01-2013, 02:27 PM
  3. Multi-sheet Data Extraction Problem with variables
    By medzed101 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-31-2013, 03:45 PM
  4. [SOLVED] complex matrix data counting and extraction problem
    By Red fuji in forum Excel General
    Replies: 50
    Last Post: 10-01-2012, 12:39 AM
  5. Getting data from HTML page to XLS
    By avveerkar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-29-2008, 02:02 AM
  6. excel data automation to/from jsp page
    By karthik in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-08-2006, 10:50 AM
  7. [SOLVED] Automation problem saving Excel as HTML.
    By nicol in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2006, 06:16 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