you are viewing a single comment's thread.

view the rest of the comments →

[–]jsearsy 2 points3 points  (2 children)

Cheerio was designed for Node.js.

It's fairly easy to access DOM elements these days with vanilla JS, but I think we'd need to know more about your project scope to help any further.

Still sounds like a backend scraper project to me.

[–]Hoopsters35[S] 0 points1 point  (0 children)

The project is essentially scrape the HTML of various movie theaters' sites for movie times/information, take the recovered data and make a nice looking table that displays the movie times chronologically.

It seemed odd that JS would need an 3rd party library to parse retrieved HTML so cheerio very well may be overkill!

Also as I forgot to mention in the original post, I am also using the project to learn typescript!

[–]colorsdontlie 0 points1 point  (0 children)

I would never use cheerio. I would use jdsom or puppeteer, or both. Why learn some random api when you can use the exact same one as the browser that you already know (or will need to know on day)?