DEV Community

Cover image for Scrape your Dev.to pageviews with Rust

Scrape your Dev.to pageviews with Rust

Ben Lovy on November 15, 2018

Here's a quick 'n' dirty way to dump your new-fangled post analytics to a CSV using Rust. You have to save the page source to src/page.html. Y'kn...
Collapse
 
ben profile image
Ben Halpern

You may have given me an excuse to finally execute some Rust code! I’ve done lots of reading but haven’t actually tried using Rust yet.

Collapse
 
deciduously profile image
Ben Lovy

Evangelizing: complete.

Collapse
 
ben profile image
Ben Halpern

I'll make a post about my hello DEV scrapity-scrape world experience once I'm done. 🙂

Collapse
 
nektro profile image
Meghan (she/her)

Adding the view count to https://dev.to/deciduously/scrape-your-devto-pageviews-with-rust-2dgc.json?

Collapse
 
deciduously profile image
Ben Lovy

That's a good idea!

Collapse
 
antonrich profile image
Anton

Ben do you have interesting Rust open source project on your radar? Something that you yourself learn from or contribute to?

I recently googled "Emacs written in Rust" and found this one remacs.

Collapse
 
deciduously profile image
Ben Lovy • Edited

Remacs is what I would have suggested! I haven't gotten too involved but there a lot of little bite-sized translations of all the Lisp functions from C to look at. There also always the Servo project too, and ripgrep

Collapse
 
antonrich profile image
Anton

Another one that's interesting is bat (as an alternative to cat).

Collapse
 
antonrich profile image
Anton

Thanks, this is interesting.

Collapse
 
deciduously profile image
Ben Lovy

Full docs for select.rs here - viable alternative to, say, Python in my opinion

Collapse
 
jbull328 profile image
John Bull

This is really cool Ben thanks for sharing!