× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

What's my user agent when I parse website with rvest package in R?

Michael Kohl
Jul 20, 2015
<p>I used <a href="https://httpbin.org/user-agent" rel="nofollow">https://httpbin.org/user-agent</a> to find out:</p> <pre><code>library(rvest) se &lt;- html_session( "https://httpbin.org/user-agent" ) se$response$request$options$useragent </code></pre> <p>Answer:</p> <pre><code>[1] "libcurl/7.37.1 r-curl/0.9.1 httr/1.0.0" </code></pre> <p>See <a href="https://github.com/hadley/rvest/issues/30" rel="nofollow">this bug report</a> for a way to override it.</p> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/31406503/What's%20my%20user%20agent%20when%20I%20parse%20website%20with%20rvest%20package%20in%20R?/31406678">Stack Overflow</a>.</p>

Get New Tutorials Delivered to Your Inbox

New tutorials will be sent to your Inbox once a week.

comments powered by Disqus