{ "info": { "author": "Sairam Krishnan", "author_email": "sairambkrishnan@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Python Synonyms Crawler\r\n=======================\r\n\r\nA Python utility that fetches synonyms for a specified word.\r\n\r\n--------------\r\n\r\nInstallation\r\n------------\r\n\r\n.. code:: sh\r\n\r\n $ pip install synonymscrawler\r\n\r\n*synonymscrawler* has 3 dependencies:\r\n\r\n- lxml\r\n- requests\r\n- blockspring\r\n\r\n**pip** installs the latter two along with this package. To install the\r\nformer on Windows:\r\n\r\n- Install the appropriate .whl file from\r\n `lxml `__.\r\n- If you're lucky, then there will be two files: a zip folder and a\r\n .whl file. In that case, copy the .whl file to the Scripts directory\r\n in your Python installation folder, and invoke pip on it.\r\n- If you're not so lucky, then there will only be a zip folder. If\r\n you're using a virtual environment (as you should be), then extract\r\n the zip folder, and copy the contents to\r\n virtual-environment-dir-name/Lib/site-packages.\r\n- Confirm successful installation via **pip list**.\r\n\r\n--------------\r\n\r\nModules\r\n-------\r\n\r\nsimple\\_synonyms\\_crawler\r\n^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n.. code:: python\r\n\r\n from synonymscrawler import simple_synonyms_crawler\r\n simple_synonyms_crawler.crawl('adumbrate', 50)\r\n\r\nReturns a list of up to N synonyms for a given word. Here, we shall\r\nreturn up to 50 synonyms for \"adumbrate.\"\r\n\r\nsynonyms\\_crawler\r\n^^^^^^^^^^^^^^^^^\r\n\r\n.. code:: python\r\n\r\n from synonymscrawler import synonyms_crawler\r\n synonyms_crawler.crawl('adumbrate', 2)\r\n\r\nReturns a dictionary object, where the keys are levels, and the values\r\nare the list of synonyms at each level.\r\n\r\nFor example, the output of this code block would be:\r\n\r\n.. code:: python\r\n\r\n {\r\n 0: ['adumbrate'], \r\n\r\n 1: ['suggest', 'cloud', 'portend', 'intimate', \r\n 'bode', 'augur', 'outline', 'foretell', \r\n 'darken', 'obscure', 'sketch', 'indicate', \r\n 'mist'], \r\n\r\n 2: ['main features', 'skeleton', 'rough draft', \r\n 'characterize', 'depiction', 'survey', \r\n 'haze', 'tone down', 'conformation', \r\n 'thumbnail sketch', 'aper\u00e7u', 'skeletonize', \r\n 'plot', 'figure', 'line', 'cloudover', \r\n 'configuration', 'rough out', 'digest', \r\n 'compendium', 'bare facts', ...]\r\n }\r\n\r\nIn other words:\r\n\r\n::\r\n\r\n {\r\n level0: [starting word],\r\n level1: [immediate synonyms for starting word],\r\n level2: [synonyms for words in level1]\r\n }\r\n\r\nblockspring\\_synonyms\\_crawler\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n`SynonymsCrawler\r\nAPI `__\r\n\r\nTo run, download the BlockSpring CLI, and follow the instructions\r\n`here `__ to test it\r\nlocally.\r\n\r\nThe output should be similar to that of **synonyms\\_crawler** above,\r\nexcept for the fact that level 0's value will be the starting word\r\nalone, rather than a list with the starting word.\r\n\r\nIn other words:\r\n\r\n::\r\n\r\n {\r\n 0: 'adumbrate',\r\n 1: [adumbrate's synonyms],\r\n 2: [synonyms of adumbrate's synonyms],\r\n .....\r\n }\r\n\r\n--------------\r\n\r\nReferences\r\n----------\r\n\r\n- Thesaurus.com - Source of Synonyms\r\n- `Tutorial on HTML Scraping in\r\n Python `__", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/SaiWebApps/PySynonymsCrawler/tarball/1.0.0", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/SaiWebApps/PySynonymsCrawler", "keywords": "Python,synonyms-crawler,web-scraping,text-parsing", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "synonymscrawler", "package_url": "https://pypi.org/project/synonymscrawler/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/synonymscrawler/", "project_urls": { "Download": "https://github.com/SaiWebApps/PySynonymsCrawler/tarball/1.0.0", "Homepage": "https://github.com/SaiWebApps/PySynonymsCrawler" }, "release_url": "https://pypi.org/project/synonymscrawler/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Python Synonyms Crawler Implementation", "version": "1.0.0" }, "last_serial": 2322269, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "717c4a7eb2b0a199ae623aa5c9df8b5b", "sha256": "916550a132204cbc46f5d8a1c7f071d5ef89913544125e1f3c3636ef4b3c2a59" }, "downloads": -1, "filename": "synonymscrawler-1.0.0.tar.gz", "has_sig": false, "md5_digest": "717c4a7eb2b0a199ae623aa5c9df8b5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5427, "upload_time": "2016-09-03T01:13:21", "url": "https://files.pythonhosted.org/packages/28/e4/bc3640b620ca8fe9f61455ac2d247dc2e4d28c7eee82c1e4d124ca6ee316/synonymscrawler-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "717c4a7eb2b0a199ae623aa5c9df8b5b", "sha256": "916550a132204cbc46f5d8a1c7f071d5ef89913544125e1f3c3636ef4b3c2a59" }, "downloads": -1, "filename": "synonymscrawler-1.0.0.tar.gz", "has_sig": false, "md5_digest": "717c4a7eb2b0a199ae623aa5c9df8b5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5427, "upload_time": "2016-09-03T01:13:21", "url": "https://files.pythonhosted.org/packages/28/e4/bc3640b620ca8fe9f61455ac2d247dc2e4d28c7eee82c1e4d124ca6ee316/synonymscrawler-1.0.0.tar.gz" } ] }