I have tried to scrape hotel reviews, the code works well for hotels with few comments, however when I have more than 50 pagination in a hotel , the csv file is empty.
Sitemap:
{"_id":"hoteles_tripadvisor_19/02/2020","startUrl":["https://www.tripadvisor.co/Hotel_Review-g303845-d307406-Reviews-Hampton_Inn_by_Hilton_Guayaquil_Downtown-Guayaquil_Guayas_Province.html#REVIEWS"],"selectors":[{"id":"name_hotel","type":"SelectorText","parentSelectors":["_root"],"selector":"h1.hotels-hotel-review-atf-info-parts-Heading__heading--2ZOcD","multiple":false,"regex":"","delay":0},{"id":"todos_idiomas","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"label[for='LanguageFilter_0']","multiple":false,"delay":0,"clickElementSelector":"label[for='LanguageFilter_0']","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"pagination","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"div.hotels-community-tab-common-Card__card--ihfZB:nth-of-type(n+3)","multiple":true,"delay":"500","clickElementSelector":"a.pageNum","clickType":"clickOnce","discardInitialElements":"discard-when-click-element-exists","clickElementUniquenessType":"uniqueText"},{"id":"name","type":"SelectorText","parentSelectors":["pagination"],"selector":"a.ui_header_link","multiple":false,"regex":"","delay":0},{"id":"pais","type":"SelectorText","parentSelectors":["pagination"],"selector":"span.default","multiple":false,"regex":"","delay":0},{"id":"fecha_comentario","type":"SelectorText","parentSelectors":["pagination"],"selector":".social-member-event-MemberEventOnObjectBlock__event_type--3njyv span","multiple":false,"regex":"","delay":0},{"id":"titulo_comentario","type":"SelectorText","parentSelectors":["pagination"],"selector":".location-review-review-list-parts-ReviewTitle__reviewTitleText--2tFRT span span","multiple":false,"regex":"","delay":0},{"id":"fecha_hospedaje","type":"SelectorText","parentSelectors":["pagination"],"selector":"span.location-review-review-list-parts-EventDate__event_date--1epHa","multiple":false,"regex":"","delay":0},{"id":"leermas","type":"SelectorElementClick","parentSelectors":["pagination"],"selector":"._2uD5bLZZ div.cPQsENeY","multiple":false,"delay":"500","clickElementSelector":"span.location-review-review-list-parts-ExpandableReview__cta--2mR2g","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"comentario","type":"SelectorText","parentSelectors":["pagination"],"selector":".location-review-review-list-parts-ExpandableReview__containerStyles--1G0AE > div._2f_ruteS div.cPQsENeY","multiple":false,"regex":"","delay":0}]}