ウェブサイトのスクレイピングってだいたいすんごくツマンナイんだけど、時々どうしてもやらなきゃいけなくなるんだよね。そんな時には、 BeautifulSoup を使って楽々、スピーディーにスクレイピング!…っていつもとキャラ違います状態のbonlifeです。 Inspired by Scraping Yahoo! Search with Web::Scraper (でも、Yahoo! Search だったらスクレイピングせずにAPI使えば良くね?とか思ったのはきっと私だけでしょう。) Python の BeautifulSoup を使って、手短に書いてみました。Python不慣れな人でもなんとなく分かると思います。 import urllib2 from BeautifulSoup import BeautifulSoup def soup2unistr(soup): return ''.j