I have the following code:
Linksml=["https://articulo.mercadolibre.cl/MLC-554702642-samsung-note-9-dual-sim-128gb-carcasas-y-caja-_JM",
"https://articulo.mercadolibre.cl/MLC-554718846-audifonos-hyperx-cloud-ps4-_JM",
"https://articulo.mercadolibre.cl/MLC-554753668-disco-duro-ssd-_JM",
"https://articulo.mercadolibre.cl/MLC-554695355-celuar-samsung-j6-duos-_JM"]
for x in range(len(Linksml)):
page=requests.get(Linksml[x])
soup=BeautifulSoup(page.content,'html.parser')
tags=soup.find('h1', class_='item-title__primary ')
print(tags)
It works, but if I run it 10 times, it will show me the name of product 1 and 2 on 5 occasions, and on the remaining 5, it will show me "none". It is random with the 3 products, in one execution the product 1 can show name, in two later it can show "none". It is like this for the 3 products, I don't know what to do anymore. Please help me, Olympian gods.