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.
xml parsing google-sheets xml-import
add a comment |
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.
xml parsing google-sheets xml-import
add a comment |
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.
xml parsing google-sheets xml-import
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
xml parsing google-sheets xml-import
edited Nov 11 at 11:11
bcperth
1,9781514
1,9781514
asked Nov 10 at 13:01
Wifibee
12
12
add a comment |
add a comment |
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.
was this reply useful?
– bcperth
Nov 15 at 11:24
add a comment |
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.
was this reply useful?
– bcperth
Nov 15 at 11:24
add a comment |
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.
was this reply useful?
– bcperth
Nov 15 at 11:24
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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