Page Source
<html>
<title>Example Web</title>
<script>
$(document).ready(function(){
document.getElementById('output').value = "Hi There""
}
)
</script>
<body>
<div id='output'></div>
</body>
</html>
As expected, Page Dom when loaded will be:
<html>
<title>Example Web</title>
<script>
$(document).ready(function(){
document.getElementById('output').value = "Hi There"
}
)
</script>
<body>
<div id='output'>Hi There</div>
</body>
</html>
It seems that when crawling sites using Scrapy, the response is the Page Source, rather than Page DOM. How do I make scrapy to request for Page DOM so that i can extract the 'Hi There' string in the body?