If you're using an Apify actor with Puppeteer, you will need to log in to a website using Puppeteer to access data. Here's how you can easily do that:

  • Navigate to the page (e.g. facebook.com).

  • Locate the login form using DevTools – right-click the form and select Inspect.

  • Find the IDs of the username/e-mail input, password input, and submit button.

Screenshot of Facebook's log-in page with HTML code.

See full code examples and more details in our documentation.

Did this answer your question?