I need to grab a commodity website's review data, but it's user data is paged .The comments per page are 10 strips , and there are about 100 pages. How can I crawl all of them out?
My intention is to use the yield and Request method to crawl the "Next Page" link, and then using the Xpath to extract data. But I can't jump to the next page to extract the data.
Here is the Html code about the "Next Page" link:
<div class="xs-pagebar clearfix">
<div class="Pagecon">
<div class="Pagenum">
<a class="pre-page pre-disable">
<a class="pre-page pre-disable">
<span class="curpage">1</span>
<a href="#" onclick="tosubmits(2):return false;">2</a>
<a href="#" onclick="tosubmits(3);return false;">3</a>
<span class="elli">...</span>
<a href="#" class="next-page" onclick="tosubmits('2');return false;">Next Page</a>
<a href="#" onclick="tosubmits('94');return false;">Final Page</a>
</div>
</div>
</div>
What does href="#"
exactly mean?