+ Reply to Thread
Results 1 to 5 of 5

Pull data from HTML tag which is unique (tag within a tag)

Hybrid View

  1. #1
    Registered User
    Join Date
    01-09-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    11

    Pull data from HTML tag which is unique (tag within a tag)

    Hi,

    when HTML tag was as mentioned below, I need to extract the content "Story & Experience" from the Richtool tip tag.
    <div class="ellipsis">Type: <span class="rich-tooltip-item">Story &amp; Experience</span></div>
    During inspect it has above code as below
    <div class="ellipsis">
    "Type: "
    <span class="rich-tooltip-item">Story &amp; Experience</span>
    </div>
    I used getelementbyclassname which worked fine for below code, but not for the above code.

    <div class="title" style="float: left; margin-bottom: 5px;">My Data extract</div>
    Anyone can lead me on this query

    banghead.gif


    Thanks

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Pull data from HTML tag which is unique (tag within a tag)

    Can you provide a workbook showing the full page of data you're extracting from, and a mockup of the exact results you're after?

    Click GO ADVANCED and use the paperclip icon to post up a copy of your workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-09-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Pull data from HTML tag which is unique (tag within a tag)

    Thanks for your reply !

    I need to extract a single line from tool tip ("Type : Support ").

    I've attached the Copy of Workbook and refer Sheet 2 in workbook for page details.

    Thanks !!
    Attached Files Attached Files

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Pull data from HTML tag which is unique (tag within a tag)

    The code stops on the login page.

    Do you get logged in automatically to the site?
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    01-09-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Pull data from HTML tag which is unique (tag within a tag)

    Sorry I should have said earlier.
    I kept an already logged in IE window open, before executing. This will allow direct navigation into page.
    I've shared a sample username/password :: (anonymous88/Valid360). Could you please use them.
    Login and paste the url and navigate to the page.

    Thanks !!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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