ropensci / crul

R6 based http client for R (for developers)
https://docs.ropensci.org/crul
Other
107 stars 17 forks source link

use cookies from browser #170

Closed GitHubFatherIsMe closed 1 year ago

GitHubFatherIsMe commented 1 year ago

How can I use cookie from browser when I scrape something from websites which asked for user sign-in to display my wanted content?

I traverse over th document and find nothing I wanted (except access API of httpbin.org like "httpbin.org/cookie/set/key/value")

I saw requests package in python can do like that: requests.get(url, cookie=dict), Do we have similar function?

Thank you very much!

sckott commented 1 year ago

thanks for the issue

see https://docs.ropensci.org/crul/reference/cookies.html