blog.iankulin.com

Jquery

A Beginner's Introduction to jQuery

An introduction to the Document Object Model and basic page manipulation with JavaScript, worked through with a click-counter button example. We rewrite the same example using jQuery, covering its selector syntax, event handling, chaining, and how it differs from plain DOM methods...

A bit of web-scraping with Cheerio

The ‘show all’ button on The Rest Is History podcast’s episodes page is broken, and there’s no JSON endpoint behind the player, so the episode list has to be scraped from the page’s HTML. Using Cheerio, a jQuery-like library for the server, I show how to select the playlist’s list items and extract each episode’s title and link, ending with a complete working script...