Sometimes when I'm hacking away on my terminal, I like to take a break and read the articles on this awesome community. The dev.to cli is pretty neat, and I highly recommend it. It works great! Try it out if you haven't.
Article No Longer Available
What I felt would be better for me though, was a scenario where I'd just type in one command and a new Dev.to tab would open on my browser. So I wrote a simple python script to do this. This was extremely simple to do using python's webbrowser
package.
Then I thought: "Why not make this a package and share it with everyone?", and that's exactly what I did.
Installation
Install open-dev.to from PyPi
pip install open-dev.to
How to use
$ dev.to --help
Usage: dev.to [OPTIONS]
Open a new dev.to browser tab on the browser
Options:
-t, --tag TEXT add a tag
--help Show this message and exit.
Open home page
$ dev.to
Open a tag page
e.g javascript, career, productivity
$ dev.to -t javascript
Enjoy!