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

user agent string #30

Closed
agerome-tes opened this issue Dec 4, 2014 · 1 comment
Closed

user agent string #30

agerome-tes opened this issue Dec 4, 2014 · 1 comment

Comments

@agerome-tes
Copy link

Hi Hadley,

I was just wondering about which user agent string the html function passes to the scrapped website. Is there a way to set the user agent string to look like a real browser?

Thanks,

Alban

@hadley
Copy link
Member

hadley commented Dec 4, 2014

It just uses the httr default. If you want to override any of that, construct the request with httr, then pass the result to rvest::html().

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

2 participants