こんにちは、@yoheiMuneです。 今日はReact.jsなどのJavascriptでページをレンダリングするページについて、スクレイピングを行う方法をブログに書きたいと思います。 目次 スクレイピング対象のページ 今回は以下のJavaScriptで、画像を追加して表示するようなページを対象にします。 http://yoheim.net/work/async_page.html 上記のページでは以下のようなJSで、ページ表示時に画像を動的に読み込みます。 <ul id="imageRoot"> <li>ここにJavaScriptでレンダリングします.</li> </ul> <script> window.addEventListener('DOMContentLoaded', function() { urls = [ '//yoheim.net/image/s156.png', '/