Webスクレイピング​で検索フォームに文字​を入したい

9 visualizaciones (últimos 30 días)
Huge Grave
Huge Grave el 12 de Jun. de 2022
Respondida: Shoumei el 13 de Jun. de 2022
この質問を御覧頂きありがとうございます。
Matlabを用いてWebスクレイピングを行いたく、その一つとして検索フォームに文字を入力したいと考えています。
イメージとしては下図のようにしたいと考えています。(画像は手動で入力しました。)
この場合、どういったコードになるのでしょうか?
webwriteを検討しましたが上手くいかなかったため質問いたしました。
ご教示いただければ幸いです。

Respuesta aceptada

Shoumei
Shoumei el 13 de Jun. de 2022
Google検索した時のURLをご覧ください。検索キーワードが含まれているのに気づくと思います。
こちらのコードで出来るのではないでしょうか?
baseURL = "https://www.google.com/search?q="
searchString = "Matlab"
url = baseURL+searchString
rowStr = webread(url)

Más respuestas (0)

Productos


Versión

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!