Having read "Why Johnny Can’t Pentest: An Analysis of Black-box Web Vulnerability Scanners", it is understood that there are websites such as calendar applications which crawlers have difficulty in dealing with. They are seemingly "infinite" websites which can just contain links to the next day/month/year etc.
Also, some websites set up spider traps or may inadvertently create a similar system (where the page links are never-ending).
If I a) have the permission of the site owner to crawl freely through their website and b) wish to use scrapy, what sort of technique can I use to determine if I have indeed encountered an "infinite" website, not specific to any example?
Note: I'm not talking about "infinite" scrolling, but rather when there are endless pages.
An example of an infinite website could be (though pointless and trivial):
<?php
if(isset($_GET['count'])){
$count = intval($_GET['count']);
$previous = $count - 1;
$next = $count + 1;
?>
<a href="?count=<?php echo $previous;?>">< Previous</a>
Current: <?php echo $count;?>
<a href="?count=<?php echo $next;?>">Next ></a>
<?
}
?>
where you just keep click next and previous to reveal more pages.