I have been trying to scrap information from a url in R using the rvest package:
url <-'https://eprocure.gov.in/cppp/tendersfullview/id%3DNDE4MTY4MA%3D%3D/ZmVhYzk5NWViMWM1NTdmZGMxYWYzN2JkYTU1YmQ5NzU%3D/MTUwMjk3MTg4NQ%3D%3D'
but am not able to correctly identity the xpath even after using selector plugin.
The code i am using for fetching the first table is as follows:
detail_data <- read_html(url)
detail_data_raw <- html_nodes(detail_data, xpath='//*[@id="edit-t-
fullview"]/table[2]/tbody/tr[2]/td/table')
detail_data_fine <- html_table(detail_data_raw)
When i try the above code, the detail_data_raw results in {xml_nodeset (0)} and consequently detail_data_fine is an empty list()
The information i am interested in scrapping is under the headers:
Organisation Details
Tender Details
Critical Dates
Work Details
Tender Inviting Authority Details
Any help or ideas in what is going wrong and how to rectify it is welcome.