Scraping behind authentication
Learn how to bypass authentication on a website by forwading cookies.
Note: this example is using v0 version of the Firecrawl API. You can install the 0.0.20 version for the Python SDK or the 0.0.36 for the Node SDK.
With Firecrawl, you can send cookies in headers to bypass authentication on a website. This can be useful when you need to scrape content from a website that requires you to be logged in.
Example
To bypass authentication, you need to include the headers
parameter in your request and set the Cookies
header with the appropriate cookie values that you can grab from your browser’s cookies. If you need help grabbing cookies, take a look at this article: Grabbing cookies