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

use cookies from browser #170

Closed
GitHubFatherIsMe opened this issue Nov 9, 2022 · 1 comment
Closed

use cookies from browser #170

GitHubFatherIsMe opened this issue Nov 9, 2022 · 1 comment

Comments

@GitHubFatherIsMe
Copy link

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
Copy link
Collaborator

sckott commented Nov 21, 2022

thanks for the issue

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

@sckott sckott closed this as completed Feb 4, 2023
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