Back to packages list![tmcw avatar](https://img.clerk.com/eyJ0eXBlIjoicHJveHkiLCJzcmMiOiJodHRwczovL2ltYWdlcy5jbGVyay5kZXYvdXBsb2FkZWQvaW1nXzJUbmdsaHJKczVGSDdSS1R5MGtjVVczVFRtTi5qcGVnIn0)
![javier avatar](https://img.clerk.com/eyJ0eXBlIjoicHJveHkiLCJzcmMiOiJodHRwczovL2ltYWdlcy5jbGVyay5kZXYvdXBsb2FkZWQvaW1nXzJUd0cyZmRDV0dxM0tOT0poUUxpeFhMSDllOC5wbmcifQ)
![tmcw avatar](https://img.clerk.com/eyJ0eXBlIjoicHJveHkiLCJzcmMiOiJodHRwczovL2ltYWdlcy5jbGVyay5kZXYvdXBsb2FkZWQvaW1nXzJUbmdsaHJKczVGSDdSS1R5MGtjVVczVFRtTi5qcGVnIn0)
Vals using cheerio
Description from the NPM package:
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
trackIphoneTradein
@tmcw
Cron
Track iPhone trade-in prices iPhone trade in values - to trade phones back to Apple themselves - fluctuate over time , and eventually they no longer accept certain kinds of phones. You can still trade in an iPhone 7 - released in 2016 , about 6 years ago as of this writing. But no longer does an iPhone 6 have value back to Apple. This tracks those values - it runs every month and records prices to iphoneTradeInValues , which I'll visualize once there's some data.
letterboxd
@javier
Script
Gets a list with all the films a user has added to their public diary in Letterboxd. The result is a JSON file with the following structure: "updated_at": "2023-08-13",
"count": 470,
"films": [
{
"watched_on": "2022-10-24",
"title": "Aftersun (2022)",
"rating": 4.5,
"rewatched": false
},
{
"watched_on": "2021-03-20",
"title": "Le Trou (1960)",
"rating": 5,
"rewatched": true
},
...
{
"watched_on": "2020-09-13",
"title": "Tampopo (1985)",
"rating": 5,
"rewatched": false
}
]
} If you want to use it in the browser, just visit this URL: https://javier-letterboxdscrapper.web.val.run/?username={username}
cheerioExample
@tmcw
Script
cheerio cheerio is a popular npm module that makes it easy to parse and manipulate HTML and XML. cheerio is modeled after a reduced version of jQuery . Note that it's pretty different than default browser DOM methods, so you can't call things like .appendChild or document.createElement when using cheerio: it's not based on a full-fledged DOM or browser implementation. But, in exchange it's a lot faster and simpler.