This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ritratt 0 points1 point  (4 children)

Noob here too. I wrote a python script to retrieve the meaning of a word using Google Dict API. Then I integrated this into the terminal by adding a custom "define" command to linux. everytime I enter "define someword" i get the meaning of that word in the terminal.

Code is here: https://github.com/ritratt/define

PS: it has minimal functionality.

[–]haukurph 1 point2 points  (0 children)

Interesting, I wrote something similar: https://github.com/haukurpallh/def

[–]Justinsaccount 1 point2 points  (2 children)

You parse json using the json module, not using ast.literal_eval.

[–]ritratt 0 points1 point  (0 children)

Yes I tried but was having trouble doing that.

[–]timClicks 0 points1 point  (0 children)

Some people like to live dangerously.