How can I set up Xpath for R crawler

Hi,

I'm making a web crawler and struggling with using Xpath now.
It's about measuring VMT between each 600 subway stations in Seoul,
and needs to be set up the departure time.

I was trying to set it up to 8 AM, so I used Xpath.
But it doesn't work and I guess because it has to be scrolled.

Please-helppppp

↓ here's the map website.

(네이버 지도)

↓ and here's what I tried on Rstudio.

eight_o_clock = remDR$findElement(using='xpath',value='//*[@id="container"]/shrinkable-layout/div/directions-layout/directions-result/div[1]/directions-summary-list/directions-summary-list-transit-option/div/directions-summary-list-timeset/div/div[2]/div/div/div/ul/li[9]button')

would be super happy if anyone can solve this problem.

thank you.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.