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 for your question. nod() is intended to "modify the path" not define it anew. In this case you need to bow() to the new url:
library(polite)
url1='https://seeker.copernicus.org/'url2='https://seeker.copernicus.org/search.php?abstract=atmospheric+chemistry&startYear=2008&endYear=2020&paperVersion=final&journal=386&page=1'
bow(url1) %>% nod(url2)
#><polite session> https://seeker.copernicus.org/search.php#> User-agent: polite R package#> robots.txt: 1 rules are defined for 1 bots#> Crawl delay: 5 sec#> The path is scrapable for this user-agent
Having said that, I agree that the error message you are getting is not informative and I should improve it. Will close the issue once the error message is improved.
nod calls bow with the wrong arguments when the URL subdomain changes, causing it to throw an error.
Here's a short reproducible example:
The text was updated successfully, but these errors were encountered: