

Similarly, find out the CSS selectors of the password field and login button. Once you will copy this, you will get the CSS selector of the selected element which is #login-email in our case. To copy the selector, do an inspect element and then right click on the selected element in "Elements" in the browser as shown: Paste the code below in package.json ) įor typing in our username and password, we need to know the CSS selector of that particular input field and type in the same field. How to create a Node app with Puppeteer?Ĭreate a folder scraper and add a file package.json to the folder. In this blog, I will be talking about Linkedin but you can apply the same methodology to any other website for writing a scraper to extract some meaningful data for your use.

I would strongly recommend to make a new profile for trying out this code and save yourself from getting blocked on LinkedIn. You can extend the methodology to any other website. In this article, I will talk about how can you login to a website in particular to LinkedIn. Hence, the web-scrapers are useful for any SAAS or B2B business who are looking for leads.

One of the most common use cases is to get leads data for cold calls or emails. Some people use it for copying the whole data and others for some useful data extraction from certain websites. Web scrapers have a lot of utility if you wish to get extract some data from other websites.
