Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
スクレイピングーー語源で英単語を増やす
import requests
from bs4 import BeautifulSoup as bs4
#<td>のタグを抽出する
r = requests.get('http://gogengo.me/roots')
data = bs4(r.text,'html.parser')
elems = data.findAll("td")
#テキストを画面に出力する
for e in elems:
text = e.get_text()
print(text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.