HTMLRewriter is a streaming web content rewriter. This example demonstrates how to use it to scrape content from a target webpage.

Scraping the 'New & Upcoming In Theaters' movies from Rotten Tomatoes and displaying them below.

Index Title Rating
1 undefined 97%
2 Sinners 96%
3 undefined 65%
4 Interview With the Vampire 86%
5 undefined 96%
6 What We Do in the Shadows 87%
7 undefined 83%
8 Abigail 83%
9 undefined 83%
10 Fright Night 77%