How to scrape any website and build an API using cheerio.js

Hu Chen
Level Up Coding
Published in
4 min readJun 9, 2019

--

Image by https://undraw.co

I was looking for GitHub trending projects API, but unfortunately, GitHub does not provide an official API for it. I decided to build github-trending-api myself using cheerio.js.

In this article, I will share with you my experience using cheerio.js, writing tests, and pushing new changes to the API server Now automatically.

--

--