
Learn the basics of web scraping and web crawling, including extracting data from sites into a database, automating hourly checks, and indexing pages across domains.
Discover the development toolkit for building a web crawler: use VS Code or other editors to run and test code, Postman for REST APIs, Chrome DevTools, and methods for scraping.
Explore three web crawling methods—from discovering hidden rest apis and simple http requests to puppeteer-powered browser rendering—prioritizing api first, then lightweight requests, then puppeteer, with real-site examples.
Discover hidden API calls with Chrome DevTools network tab, filter xhr requests, and extract product data (title, price, images) from load more actions, then replicate in Postman.
Identify the hidden rest api with Postman and test the get request to pull new arrivals for women and men, noting data is already formatted for scripting.
Set a user agent header in Node.js requests to avoid access denial, using Needle and browser-like headers. Then fetch all products and save them to a MongoDB database.
Learn how to fetch all products from an API in Node.js by looping with offset and page size, adding delays, and saving results to MongoDB.
Learn to uncover hidden APIs with Chrome DevTools by inspecting network traffic and using the mobile page trick to access product data and pagination, then test APIs with Postman.
Learn to reproduce mobile API requests in Postman by importing curl requests, identifying essential headers such as user agent, referer, and AMP same origin, and validating responses.
Learn how to make a HTTP request using node-fetch and the Fetch API
Write the first html parser test for a product page, using before all setup and a read file sync, and verify the title matches the Amazon page.
Implement a cheerio-based parser to extract the product title from a page, trim whitespace, and return it in an object, ensuring the test passes; plan to extract the price next.
Create an automated workflow using Chromium and Puppeteer to log into LinkedIn, visit suggested profiles, build a library of profiles, and extract data.
Initialize the web crawler project by creating a crawler folder, running npm init, and installing puppeteer and cheerio.
Log in to LinkedIn, view my profile, reveal related profiles via an extended viewport, extract profile links with a CSS selector using puppeteer and cheerio, and crawl them.
Do you want to build a webcrawler in Nodejs?
In this course you will learn how to build a webcrawler using the newest JavaScript syntax with popular sites like H&M, Amazon, LinkedIn and AliExpress!
You'll learn how to find hidden API's on sites like H&M and AliExpress and see how you can even avoid building a web crawler in the first place, you can save a lot of time this way!
Then I show how to build a web crawler for Amazon the test-driven way, by building out tests for the various product page layouts there is on Amazon.
After that we'll take a look at how to automate login and scraping profiles from LinkedIn using Puppeteer, the automated Chromium browser!