To clarify, here is the data[highlighted] that I want to extract from the 305 results that I found.
To find the right css selector I used SelectorGadget
My question is: Am I using the right url to get the data? I mean, do I need to code my parameters using the search engine url, instead of just using the url with the page results? If yes, how do I do this? If not, what am I doing wrong?
Thanks for your patience, if I misspelled something or killed the english grammar, please forgive me.
Hi
i propose an other solution in order to have the data that you search for
you can use the code below
#Loading the rvest package
library('rvest')
#Specifying the url for desired website to be scraped
url <- "**put your url here...................;**"
#Reading the HTML code from the website
webpage <- read_html (url)
#Using CSS selectors to scrap the rankings section
wanted_data <- html_nodes(webpage,'**put the bloc of the data the you want..........**')
#Converting the ranking data to text
rank_data <- html_text(wanted_data)
It's PHP, and you're interacting with a database. You need to send a POST request with the form data or you'll end up with an empty page. I've written a more thorough answer in the DataCamp Slack channel.