{
    "componentChunkName": "component---src-templates-post-jsx",
    "path": "/blog/urban-dictionary-therapy",
    "result": {"data":{"post":{"id":"cf46acb1-0bc9-5a0c-b97f-278a880e08f8","body":"var _excluded = [\"components\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n/* @jsxRuntime classic */\n/* @jsx mdx */\n\nvar _frontmatter = {\n  \"title\": \"Urban Dictionary Therapy\",\n  \"slug\": \"/urban-dictionary-therapy\",\n  \"description\": \"A simple rehabilitation program for coping with long frustrating days of programming\",\n  \"date\": \"2017-05-12T00:00:00.000Z\",\n  \"category\": \"Python\",\n  \"image\": \"./img/UDTherapy.png\",\n  \"repo\": \"Urban-Dictionary-Therapy\",\n  \"tags\": [\"python\", \"terminal\", \"projects\"],\n  \"published\": true\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n    props = _objectWithoutProperties(_ref, _excluded);\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", {\n    \"classmame\": \"text-center\"\n  }, \"\\n  \", mdx(\"img\", {\n    parentName: \"p\",\n    \"src\": \"https://cloud.githubusercontent.com/assets/16360374/25802132/cfcd58de-33a5-11e7-8cf8-81f18f6f7af8.png\",\n    \"width\": 750,\n    \"alt\": \"preview\"\n  }), \"\\n\"), mdx(\"h2\", null, \"Description:\"), mdx(\"p\", null, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Urban Dictionary Therapy\"), \" is a simple command-line rehabilitation program for coping with those long frustrating days of programming. Utilizing this program and the information generously donated by the online community, you too can return to your work as a more successful, functioning member of society. More importantly, Urban Dictionary Therapy provides you with the much needed liberation without the temptations that come with opening up a new tab in your browser.\\nThough, this is only one of the many wonderful ways this package can benefit your life. Maybe you\", \"\\u2019\", \"re looking for a substitute for the obligatory \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"fortune\"), \" package in your command-line greeting or just simply looking for a way to expand your vocabulary?\\nNo matter the issue, \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Urban Dictionary Therapy\"), \" provides a perfect answer to all your woes.\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"center\"\n  }, \"Arguments\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"center\"\n  }, mdx(\"em\", {\n    parentName: \"td\"\n  }, \"-s\"), \" or \", mdx(\"em\", {\n    parentName: \"td\"\n  }, \"\\u2014search\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Prints a definition for the specified term\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"center\"\n  }, mdx(\"em\", {\n    parentName: \"td\"\n  }, \"-a\"), \" or \", mdx(\"em\", {\n    parentName: \"td\"\n  }, \"\\u2014all\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Prints a whole page of definitions\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"center\"\n  }, mdx(\"em\", {\n    parentName: \"td\"\n  }, \"-wotd\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Prints the \\u2019\", mdx(\"em\", {\n    parentName: \"td\"\n  }, \"Word of the Day\"), \"\\u2019\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"center\"\n  }, mdx(\"em\", {\n    parentName: \"td\"\n  }, \"-h\"), \" or \", mdx(\"em\", {\n    parentName: \"td\"\n  }, \"\\u2014help\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Prints a list of accepted arguments and their functionality\")))), mdx(\"br\", null), mdx(\"hr\", null), mdx(\"h2\", null, \"Setup:\"), mdx(\"p\", null, \"This package requires that you have Python 3, as well as BeautifulSoup4. On OS X and Linux systems Python 3 should be installed by default. Once Python is installed you can download \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://www.crummy.com/software/BeautifulSoup/\",\n    \"target\": \"_blank\",\n    \"rel\": \"nofollow noopener noreferrer\"\n  }, \"BeautifulSoup\"), \" with the command:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-bash\"\n  }, \"  $ pip3 install bs4\\n\")), mdx(\"p\", null, mdx(\"strong\", {\n    parentName: \"p\"\n  }, mdx(\"em\", {\n    parentName: \"strong\"\n  }, \"Note:\")), \" To my knowledge, Python3 is also included in the new \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"Bash on Windows\"), \" linux-subsystem for Windows 10.\"), mdx(\"p\", null, \"Furthermore, you can also make the program executable from anywhere in your file\", \"\\u2013\", \"system with the command \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"./UDTherapy.py\"), \" by adding the program directory to your \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"PATH\"), \" and by modifying the program permissions using the command:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-bash\"\n  }, \"  $ chmod +x UDTherapy.py\\n\")), mdx(\"br\", null));\n}\n;\nMDXContent.isMDXComponent = true;","fields":{"slug":"/urban-dictionary-therapy"},"frontmatter":{"title":"Urban Dictionary Therapy","description":"A simple rehabilitation program for coping with long frustrating days of programming","date":"12 May 2017","category":"Python","image":{"childImageSharp":{"gatsbyImageData":{"layout":"fullWidth","backgroundColor":"#f8f8f8","images":{"fallback":{"src":"/static/ef13a1e3509bd334b971561c825b807a/102c8/UDTherapy.png","srcSet":"/static/ef13a1e3509bd334b971561c825b807a/102c8/UDTherapy.png 628w","sizes":"100vw"},"sources":[{"srcSet":"/static/ef13a1e3509bd334b971561c825b807a/095b0/UDTherapy.webp 628w","type":"image/webp","sizes":"100vw"}]},"width":1,"height":0.6257961783439491}}}}},"avatar":{"childImageSharp":{"gatsbyImageData":{"layout":"constrained","backgroundColor":"#f8f8f8","images":{"fallback":{"src":"/static/b24b72d8f366da7af02542a735d82fa0/f9edd/me.jpg","srcSet":"/static/b24b72d8f366da7af02542a735d82fa0/93848/me.jpg 60w,\n/static/b24b72d8f366da7af02542a735d82fa0/73bb6/me.jpg 120w,\n/static/b24b72d8f366da7af02542a735d82fa0/f9edd/me.jpg 240w,\n/static/b24b72d8f366da7af02542a735d82fa0/97a19/me.jpg 480w","sizes":"(min-width: 240px) 240px, 100vw"},"sources":[{"srcSet":"/static/b24b72d8f366da7af02542a735d82fa0/927d1/me.webp 60w,\n/static/b24b72d8f366da7af02542a735d82fa0/507b0/me.webp 120w,\n/static/b24b72d8f366da7af02542a735d82fa0/8d565/me.webp 240w,\n/static/b24b72d8f366da7af02542a735d82fa0/21b1a/me.webp 480w","type":"image/webp","sizes":"(min-width: 240px) 240px, 100vw"}]},"width":240,"height":240}}}},"pageContext":{"slug":"/urban-dictionary-therapy"}},
    "staticQueryHashes": []}