You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you first of all for the development of this useful package.
Today, I have experienced a strange behavior from the read_html_live() function, whereby if I run my script line by line from R Studio, and slowly, I can then use html_elements() to retrieve the elements from the HTML page correctly, but if I source the script (or even if I run all the lines individually, but quickly!) html_elements() just returns NAs, as if the contents of the variable returned by read_html_live() are not yet available... (even if the variable is already stored in the global environment!)
Here is my minimal reproducible example where I retrieve 'F1000Research' best percentile from Scopus web site. I need scraping because such information is not provided by the API)
Thank you first of all for the development of this useful package.
Today, I have experienced a strange behavior from the
read_html_live()
function, whereby if I run my script line by line from R Studio, and slowly, I can then usehtml_elements()
to retrieve the elements from the HTML page correctly, but if I source the script (or even if I run all the lines individually, but quickly!)html_elements()
just returns NAs, as if the contents of the variable returned byread_html_live()
are not yet available... (even if the variable is already stored in the global environment!)Here is my minimal reproducible example where I retrieve 'F1000Research' best percentile from Scopus web site. I need scraping because such information is not provided by the API)
This just returns NAs:
However this works (even when sourcing the entire script):
¯(°_o)/¯
My sessionInfo:
The text was updated successfully, but these errors were encountered: