Share your repls and programming experiences

← Back to all posts
PythonDictionary
JorgeCatherine (11)

Enter word in the CLI and it will be defined.
Basically just simple web-scraping script. All definitions are coming from merriam-webster dictionary.
Have fun.

Commentshotnewtop
JosephSanthosh (1192)

Nice! How did you use scraping in this case? I really want to learn it!

JorgeCatherine (11)

@JosephSanthosh I use requests to get the html content of a file, then use beautiful soup to parse through the html file,looking for the definition of the word. The code isn't too hard to understand.