Skip to content

Instantly share code, notes, and snippets.

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)
package main
import (
"fmt"
"sync"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.