Text mining in Amazon product review using R. I wasn't able to extract the particular product's review
Change your url to:
url &lt;- &quot;https://www.amazon.in/Apple-iPhone-11-128GB-Black/product-reviews/B07XVLW7YK/ref=cm_cr_arp_d_paging_btm_next_2?ie=UTF8&amp;reviewerType=all_reviews&amp;pageNumber&quot;

Otherwise, as is what your current code is doing, you keep looping only the first page of reviews.