XHRを作成してください。 g。 https://www.google.com/complete/search?client=serp&hl=en&q=merge%20sort&xhr=t
、merge%20sort
は、URLでエンコードされたキーワードフレーズです。私の応答は、(読みやすさを向上させるためにフォーマットされた)、Googleのオートコンプリートの提案を含むJSON文字列です:ブラウザにGoogleのウェブページ上の要求を入力中
["merge sort", [
["merge sort", 0],
["merge sort\u003cb\u003e java\u003c\/b\u003e", 0],
["merge sort\u003cb\u003e algorithm\u003c\/b\u003e", 0],
["merge sort\u003cb\u003e c++\u003c\/b\u003e", 0],
["merge sort\u003cb\u003e python\u003c\/b\u003e", 0],
["merge sort\u003cb\u003e pseudocode\u003c\/b\u003e", 0],
["merge sort\u003cb\u003e time complexity\u003c\/b\u003e", 0],
["merge sort\u003cb\u003e complexity\u003c\/b\u003e", 0],
["merge sort\u003cb\u003e worst case\u003c\/b\u003e", 0],
["merge sort\u003cb\u003e code\u003c\/b\u003e", 0]
], {
"q": "EaGxh39vy6jRroUMUO5M7u-y09c"
}]
このようなXHRを検出することができます。
これはいいですが、私が探しているものではありません。私が必要とするのは、「人々も尋ねる」から得られる提案です。言い換えれば、例えば、あなたがポップクイズで見つけるかもしれない完全な質問。 –
@ Shivaどのようにして「People also ask」という機能を有効にすることができますか?何か不足していますか? Google検索で表示されるものは、すべて自動補完リストのみです。 – omegastripes
ちょうど撮ったこのスクリーンショットを見てください:https://puu.sh/tonnh/870b22e2e1.png –