@@ -950,9 +950,9 @@ export default class Interpreter extends EventEmitter {
950
950
if ( checkLimit ( ) ) return allResults ;
951
951
952
952
let loadMoreCounter = 0 ;
953
- let previousResultCount = allResults . length ;
954
- let noNewItemsCounter = 0 ;
955
- const MAX_NO_NEW_ITEMS = 2 ;
953
+ // let previousResultCount = allResults.length;
954
+ // let noNewItemsCounter = 0;
955
+ // const MAX_NO_NEW_ITEMS = 2;
956
956
957
957
while ( true ) {
958
958
// Find working button with retry mechanism
@@ -1019,21 +1019,21 @@ export default class Interpreter extends EventEmitter {
1019
1019
1020
1020
await scrapeCurrentPage ( ) ;
1021
1021
1022
- const currentResultCount = allResults . length ;
1023
- const newItemsAdded = currentResultCount > previousResultCount ;
1022
+ // const currentResultCount = allResults.length;
1023
+ // const newItemsAdded = currentResultCount > previousResultCount;
1024
1024
1025
- if ( ! newItemsAdded ) {
1026
- noNewItemsCounter ++ ;
1027
- debugLog ( `No new items added after click (${ noNewItemsCounter } /${ MAX_NO_NEW_ITEMS } )` ) ;
1025
+ // if (!newItemsAdded) {
1026
+ // noNewItemsCounter++;
1027
+ // debugLog(`No new items added after click (${noNewItemsCounter}/${MAX_NO_NEW_ITEMS})`);
1028
1028
1029
- if ( noNewItemsCounter >= MAX_NO_NEW_ITEMS ) {
1030
- debugLog ( `Stopping after ${ MAX_NO_NEW_ITEMS } clicks with no new items` ) ;
1031
- return allResults ;
1032
- }
1033
- } else {
1034
- noNewItemsCounter = 0 ;
1035
- previousResultCount = currentResultCount ;
1036
- }
1029
+ // if (noNewItemsCounter >= MAX_NO_NEW_ITEMS) {
1030
+ // debugLog(`Stopping after ${MAX_NO_NEW_ITEMS} clicks with no new items`);
1031
+ // return allResults;
1032
+ // }
1033
+ // } else {
1034
+ // noNewItemsCounter = 0;
1035
+ // previousResultCount = currentResultCount;
1036
+ // }
1037
1037
1038
1038
if ( checkLimit ( ) ) return allResults ;
1039
1039
0 commit comments