Crawling webpages. I needed to find out if a product price is actually visible to users. PhantomJS executes JS and CSS and I can execute a Javascript query to check.
Crawling pages is probably one of the most common use cases, I would imagine.
I use PhantomJS and SlimerJS to host CLI tools written in TypeScript/JavaScript. I also run these tools in the browser because I find it a better debugging experience than remote debugging.
There's a lot of functionality available through NPM and writing tools and scripts in TS can be very productive and easy to cobble things together - even advanced things.
3 comments
[ 2.5 ms ] story [ 17.6 ms ] threadThis was so I could convert the data from multiple accounts to http://www.ledger-cli.org/ format automatically.
I use PhantomJS and SlimerJS to host CLI tools written in TypeScript/JavaScript. I also run these tools in the browser because I find it a better debugging experience than remote debugging.
There's a lot of functionality available through NPM and writing tools and scripts in TS can be very productive and easy to cobble things together - even advanced things.