<jupyter_start><jupyter_text>Original Link<jupyter_code>url = "https://www.amazon.in/Lenovo-IdeaPad-Celeron-Platinum-81WH007KIN/dp/B09MM4FPMR/ref=sr_1_3?crid=30R34DWTFV1LU&keywords=laptops&qid=1640247787&sprefix=lap%2Caps%2C699&sr=8-3"<jupyter_output><empty_output><jupyter_text>Splitting the URL into Distinctive parts<jupyter_code>url_array = url.split("/")<jupyter_output><empty_output><jupyter_text>Printing the URL parts<jupyter_code>print(url_array)<jupyter_output>['https:', '', 'www.amazon.in', 'Lenovo-IdeaPad-Celeron-Platinum-81WH007KIN', 'dp', 'B09MM4FPMR', 'ref=sr_1_3?crid=30R34DWTFV1LU&keywords=laptops&qid=1640247787&sprefix=lap%2Caps%2C699&sr=8-3']<jupyter_text>Creating the URL array from the parts<jupyter_code>url_1 = 'https://www.amazon.in/'+url_array[3]+'/product-reviews/'+url_array[5]+'/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&reviewerType=all_reviews'<jupyter_output><empty_output><jupyter_text>Printing the created URL<jupyter_code>print(url_1)<jupyter_output>https://www.amazon.in/Lenovo-IdeaPad-Celeron-Platinum-81WH007KIN/product-reviews/B09MM4FPMR/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&reviewerType=all_reviews<jupyter_text>Inserting the page number<jupyter_code>x=2<jupyter_output><empty_output><jupyter_text>Created URL<jupyter_code>url_2 = 'https://www.amazon.in/'+url_array[3]+'/product-reviews/'+url_array[5]+'/ref=cm_cr_arp_d_paging_btm_next_'+str(x)+'?ie=UTF8&reviewerType=all_reviews&pageNumber='+str(x)
#pr
print(url_2)<jupyter_output>https://www.amazon.in/Lenovo-IdeaPad-Celeron-Platinum-81WH007KIN/product-reviews/B09MM4FPMR/ref=cm_cr_arp_d_paging_btm_next_2?ie=UTF8&reviewerType=all_reviews&pageNumber=2
StarcoderdataJupyterStructuredCleanDedup