Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obeying robots.txt seems to work only for some links #71

Open
danrg opened this issue Feb 12, 2020 · 0 comments
Open

Obeying robots.txt seems to work only for some links #71

danrg opened this issue Feb 12, 2020 · 0 comments

Comments

@danrg
Copy link

danrg commented Feb 12, 2020

There seems to be a bug in Rcrawlerp.R, line 429:
domain<-strsplit(gsub("http://|https://|www\\.", "", Website), "/")[[c(1, 1)]] if (Obeyrobots) { rules<-RobotParser(Website,Useragent) urlbotfiler<-rules[[2]] urlbotfiler<-gsub("^\\/", paste("http://www.",domain,"/", sep = ""), urlbotfiler , perl=TRUE) urlbotfiler<-gsub("\\*", ".*", urlbotfiler , perl=TRUE) } else {urlbotfiler=" "}

This suggests only links starting with 'http://www' are going to obey robots.txt.

Are PRs accepted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant