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
/* | |
やりたいこと: | |
いくつかのブログのFeedから、最新の情報を取得し、JSON形式で返したい | |
node -v9.5.0 | |
*/ | |
/*求めている結果 | |
[ | |
[{ |
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
#codeing:utf-8 | |
import re | |
from bs4 import BeautifulSoup | |
from urllib.request import urlopen | |
from urllib.parse import unquote | |
url = "https://ja.wikipedia.org/wiki/%E3%83%86%E3%82%A4%E3%83%AB%E3%82%BA_%E3%82%AA%E3%83%96_%E3%82%A4%E3%83%8E%E3%82%BB%E3%83%B3%E3%82%B9" | |
html = urlopen(url) |
OlderNewer