V
V
vladeol2018-03-24 20:42:16
Google Chrome
vladeol, 2018-03-24 20:42:16

Why does xpath in importxml and chrome work differently?

Hello, I can’t figure out importxml
For example, we want to always get the name of the first article by
reference w3bsit3-dns.com/articles/tag/fotoistoriya
In the console it determines correctly

//*[@id='rk0JxZz0M0Ve']/article[1]/div[2]/h2/a/span

prntscr.com/ivt9y1
Paste exactly the same into importxml - error
=importxml("http://4pda.ru/articles/tag/fotoistoriya/";"//*[@id='rk0JxZz0M0Ve']/article/div[2]/h2/a/span")

prntscr.com/ivtacn
What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-03-24
@dimonchik2013

problem in
'rk0JxZz0M0Ve'
learn to build xpath universally

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question