Created
May 31, 2019 02:23
-
-
Save Yuiki/13020dbd91fc76ae03482f282d87cbe3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from bs4 import BeautifulSoup | |
while True: | |
word = input() | |
url = "http://ejje.weblio.jp/content/" + word | |
request = requests.get(url) | |
soup = BeautifulSoup(request.text, "html.parser") | |
meaning = soup.find(class_='content-explanation').text | |
print(meaning) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment