Open Dev.to from your terminal πŸŽ‰

Kelvin Wangonya - Apr 9 '19 - - Dev Community

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.

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.

python

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
Enter fullscreen mode Exit fullscreen mode

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.

Enter fullscreen mode Exit fullscreen mode

Open home page

$ dev.to
Enter fullscreen mode Exit fullscreen mode

Open a tag page

e.g javascript, career, productivity

$ dev.to -t javascript
Enter fullscreen mode Exit fullscreen mode

Enjoy!

kitten

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player