XMLimport of aria-label value









up vote
0
down vote

favorite












I'm blocking on some XMLimport I'm doing in a sheet.
So far, the data I've been looking at was quite easy to point at simply using chrome's xpath copy and a few tweaks.



But now, a chunk of what I need is behind a mouse-over on the website and I can't locate it.



From this website wowprogress AF ranking



For example, to get the correct value from that line concerning the character Breakerkill" > "33 I used in Google sheet:



=importxml(A1; "//tr[2]/td[6]/span")


(the A1 cell is where I stored the URL for the sheet)



from that code



<span aria-label="45753 exp" class="hint--bottom-right innerLink" style="font-weight: bold;" xpath="1">33</span>


But now, for my next column, I need that node value aria-label (the "45753 exp" part) and I need assistance.










share|improve this question



























    up vote
    0
    down vote

    favorite












    I'm blocking on some XMLimport I'm doing in a sheet.
    So far, the data I've been looking at was quite easy to point at simply using chrome's xpath copy and a few tweaks.



    But now, a chunk of what I need is behind a mouse-over on the website and I can't locate it.



    From this website wowprogress AF ranking



    For example, to get the correct value from that line concerning the character Breakerkill" > "33 I used in Google sheet:



    =importxml(A1; "//tr[2]/td[6]/span")


    (the A1 cell is where I stored the URL for the sheet)



    from that code



    <span aria-label="45753 exp" class="hint--bottom-right innerLink" style="font-weight: bold;" xpath="1">33</span>


    But now, for my next column, I need that node value aria-label (the "45753 exp" part) and I need assistance.










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm blocking on some XMLimport I'm doing in a sheet.
      So far, the data I've been looking at was quite easy to point at simply using chrome's xpath copy and a few tweaks.



      But now, a chunk of what I need is behind a mouse-over on the website and I can't locate it.



      From this website wowprogress AF ranking



      For example, to get the correct value from that line concerning the character Breakerkill" > "33 I used in Google sheet:



      =importxml(A1; "//tr[2]/td[6]/span")


      (the A1 cell is where I stored the URL for the sheet)



      from that code



      <span aria-label="45753 exp" class="hint--bottom-right innerLink" style="font-weight: bold;" xpath="1">33</span>


      But now, for my next column, I need that node value aria-label (the "45753 exp" part) and I need assistance.










      share|improve this question















      I'm blocking on some XMLimport I'm doing in a sheet.
      So far, the data I've been looking at was quite easy to point at simply using chrome's xpath copy and a few tweaks.



      But now, a chunk of what I need is behind a mouse-over on the website and I can't locate it.



      From this website wowprogress AF ranking



      For example, to get the correct value from that line concerning the character Breakerkill" > "33 I used in Google sheet:



      =importxml(A1; "//tr[2]/td[6]/span")


      (the A1 cell is where I stored the URL for the sheet)



      from that code



      <span aria-label="45753 exp" class="hint--bottom-right innerLink" style="font-weight: bold;" xpath="1">33</span>


      But now, for my next column, I need that node value aria-label (the "45753 exp" part) and I need assistance.







      xml parsing google-sheets xml-import






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 11 at 11:11









      bcperth

      1,9781514




      1,9781514










      asked Nov 10 at 13:01









      Wifibee

      12




      12






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          You are nearly there:



          This should locate the value of the aria-label.



          =IMPORTXML("https://www.wowprogress.com/artifact_power/fr/","//tr[2]/td[6]/span/@aria-label")


          Let me know if that solves the problem.



          I tried it and it produces this result:



          46568 exp


          Also, have a play with this or a similar tool https://www.freeformatter.com/xpath-tester.html. It has lots of examples, including locating elements by attribute or finding the value of attributes. Then you can become a mini-expert on the subject!



          Also beware of taking Xpath queries from the browser dev console. It works on the DoM and in loading the URL it may add missing tags like <tbody>. So if you try to use these queries on the URL contents - they won't work - at least without removing the extra selectors.






          share|improve this answer






















          • was this reply useful?
            – bcperth
            Nov 15 at 11:24










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53239204%2fxmlimport-of-aria-label-value%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          You are nearly there:



          This should locate the value of the aria-label.



          =IMPORTXML("https://www.wowprogress.com/artifact_power/fr/","//tr[2]/td[6]/span/@aria-label")


          Let me know if that solves the problem.



          I tried it and it produces this result:



          46568 exp


          Also, have a play with this or a similar tool https://www.freeformatter.com/xpath-tester.html. It has lots of examples, including locating elements by attribute or finding the value of attributes. Then you can become a mini-expert on the subject!



          Also beware of taking Xpath queries from the browser dev console. It works on the DoM and in loading the URL it may add missing tags like <tbody>. So if you try to use these queries on the URL contents - they won't work - at least without removing the extra selectors.






          share|improve this answer






















          • was this reply useful?
            – bcperth
            Nov 15 at 11:24














          up vote
          0
          down vote













          You are nearly there:



          This should locate the value of the aria-label.



          =IMPORTXML("https://www.wowprogress.com/artifact_power/fr/","//tr[2]/td[6]/span/@aria-label")


          Let me know if that solves the problem.



          I tried it and it produces this result:



          46568 exp


          Also, have a play with this or a similar tool https://www.freeformatter.com/xpath-tester.html. It has lots of examples, including locating elements by attribute or finding the value of attributes. Then you can become a mini-expert on the subject!



          Also beware of taking Xpath queries from the browser dev console. It works on the DoM and in loading the URL it may add missing tags like <tbody>. So if you try to use these queries on the URL contents - they won't work - at least without removing the extra selectors.






          share|improve this answer






















          • was this reply useful?
            – bcperth
            Nov 15 at 11:24












          up vote
          0
          down vote










          up vote
          0
          down vote









          You are nearly there:



          This should locate the value of the aria-label.



          =IMPORTXML("https://www.wowprogress.com/artifact_power/fr/","//tr[2]/td[6]/span/@aria-label")


          Let me know if that solves the problem.



          I tried it and it produces this result:



          46568 exp


          Also, have a play with this or a similar tool https://www.freeformatter.com/xpath-tester.html. It has lots of examples, including locating elements by attribute or finding the value of attributes. Then you can become a mini-expert on the subject!



          Also beware of taking Xpath queries from the browser dev console. It works on the DoM and in loading the URL it may add missing tags like <tbody>. So if you try to use these queries on the URL contents - they won't work - at least without removing the extra selectors.






          share|improve this answer














          You are nearly there:



          This should locate the value of the aria-label.



          =IMPORTXML("https://www.wowprogress.com/artifact_power/fr/","//tr[2]/td[6]/span/@aria-label")


          Let me know if that solves the problem.



          I tried it and it produces this result:



          46568 exp


          Also, have a play with this or a similar tool https://www.freeformatter.com/xpath-tester.html. It has lots of examples, including locating elements by attribute or finding the value of attributes. Then you can become a mini-expert on the subject!



          Also beware of taking Xpath queries from the browser dev console. It works on the DoM and in loading the URL it may add missing tags like <tbody>. So if you try to use these queries on the URL contents - they won't work - at least without removing the extra selectors.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 11 at 2:40

























          answered Nov 10 at 22:52









          bcperth

          1,9781514




          1,9781514











          • was this reply useful?
            – bcperth
            Nov 15 at 11:24
















          • was this reply useful?
            – bcperth
            Nov 15 at 11:24















          was this reply useful?
          – bcperth
          Nov 15 at 11:24




          was this reply useful?
          – bcperth
          Nov 15 at 11:24

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53239204%2fxmlimport-of-aria-label-value%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

          Syphilis

          Darth Vader #20