What does that word mean?
Commandline tool for looking up words.
Simply launch the script with your query like so:
Definition
py wordsearch.py query
Synonym
py wordsearch.py -s query
The script will then google it for you and look through supported sites for your answer
Supported sites
Word definitions
English
Danish
Synonyms
English
Sorting languages
To only show english results edit line 3 in config.ini to change language sorting like so:
before:
[DEFAULT]
selector = p
lang = all
after:
[DEFAULT]
selector = p
lang = en
Output looking weird?
Change your consoles encoding to UTF-8 and it should be solved. On windows you can change your encoding with the following command:
chcp 65001
Requirements
You can install requirements with pip
py -m pip install -r requirements.txt
- BeautifulSoup4
- Requests