Ajax通信しているサイトをクロールする

takkii
takkii
Feb 24, 2017 · 2 min read

あるサイトをBeautifulSoupを用いてクロールしたところ、必要な情報が取得できなかった。この原因はおそらく、Ajax通信でデータを表示していたからだと思う。

PythonとSeleniumを用いて、Ajax通信しているサイトをクロールする手段をとった。

下記のページを参考にした。

Scrapyを用いているものもあったが、うまく進められず。BeautifulSoupの方が使い慣れている事もあり、上記のサイトを参考に進めた。

BeautifulSoupについては下記を参考にした。

Music and Technology

Composition,Programming,Data Analysis and Tech

takkii

Written by

takkii

Competitive Programming, MachineLearning, Manga, Music, BoardGame.

Music and Technology

Composition,Programming,Data Analysis and Tech

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade