Wednesday, April 20, 2011

Google CLI search with Python

I found an entry on r/python for a Google CLI search script done in Python which you can grab from here. I think the author did a really good job and I enjoyed playing around with it. I think the only thing I'd change is to add the functionality to open a result in your browser using the webbrowser.open() method.

Some people may ask why you would want to do such a thing like search Google via the command line. I personally like it because sometimes it's just nice to be able to do it when you're working on a remote system and more importantly if you're searching at work it can look like you're busier than you are!

So on that note I've been developing Python scripts myself for browsing reddit and for browsing Gumtree. Again, it allows me to look busy when I'm not but also they're nice little projects to do over lunch breaks.

I will most certainly end up sharing my various CLI apps too for people to use but I would also encourage others to do the same and create their own especially for those just learning and as an added bonus browsing reddit can look like important work.

0 comments: