はじめに Webサイトにアクセスしてきたオーディエンスがどんなスマートフォンを使用しているか調査するためにUser Agentを収集する必要がありました。各キャリアのサイトに用意されている開発者向けのサイトから効率よく収集するのに調度良いツールがないか探していたところ、PythonにScrapyというクロール&スクレイピングフレームワークがあるそうなので勉強がてら作ってみました。 環境、前提条件 macOS Sierra(10.12.6) Chrome最新版 Python 3.6.1 :: Anaconda 4.4.0 (x86_64) Scrapy 1.5 Scrapyの使い方 インストール すでにPython環境が構築されている場合はpip installですぐに利用できるようになります。 前準備 本記事ではauの開発者向け技術情報サイトのAndroidのUser Agentページをク