Skip to content

Instantly share code, notes, and snippets.

View tadaken3's full-sized avatar

tadaken3 tadaken3

View GitHub Profile
@tadaken3
tadaken3 / fetchLatestBlog.js
Last active October 30, 2018 10:46
いくつかのブログのFeedから、最新の情報を取得したい
/*
やりたいこと:
いくつかのブログのFeedから、最新の情報を取得し、JSON形式で返したい
node -v9.5.0
*/
/*求めている結果
[
[{
@tadaken3
tadaken3 / file0.txt
Last active July 17, 2019 09:20
wikipediaからのページからリンク一覧を取得する方法 ref: https://qiita.com/tadaken3/items/e09ba2ede988bbacb303
#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)