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.

(https://map.naver.com/v5/directions/14129117.196626525,4517034.593974983,홍대입구역%202호선,239,SUBWAY_STATION/14136701.202067193,4518919.301138364,종로3가역%201호선,130,SUBWAY_STATION/-/transit?c=14131003.5512109,4517841.6134207,13,0,0,0,dh)

↓ 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.