This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
2
help: rvest html_nodes returns empty list
Post Body
Dear all,
I was trying to scrape a webpage using the R package rvest but when I use the command html_node it returns an empty list. What am I doing wrong? This is my code (I used SelectorGadget to obtain the tags):
SETUP
library(tidyverse) library(rvest)
Getting the link for each house
main.link<- "https://www.sreality.cz/en/search/for-sale/apartments/praha"
main.page<-read_html(main.link)
links<- html_nodes(main.page, css=".title .ng-binding")
As you can see I am a beginner in R. Thank you in advance for your help.
Author
Account Strength
90%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,493
Link Karma
621
Comment Karma
872
Profile updated: 1 day ago
Posts updated: 1 year ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 6 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/rprogrammin...