概要 ・GoogleのAPI使って,クエリを入力に検索エンジン・サジェストを収集 検索エンジン・サジェスト収集(Perl版)との違い ・APIを使用 ・入力したクエリの後ろに文字列(空白や五十音)を指定することで,「クエリ+文字列」に対するサジェストを収集 ・→つまり,検索ボリュームに関係なく,クエリにまつわるありとあらゆるサジェストの収集を可能とした. 「筑波大学+あ」の例 「筑波大学+きょ」の例 Code import argparse from time import sleep from string import ascii_lowercase from string import digits import requests import urllib.parse class GoogleAutoComplete: def __init__(self, test_mode=Fa