HI
help me for getting urls for each product
import pandas as pd
import requests
from bs4 import BeautifulSoup as bs


url = "https://www.adidas.com.my/en/men-shoes?start=0";
page = requests.get(url)
soup = bs(page.text,"html.parser")

links=[]
listings = soup.find_all('div',{'class':'grid-item___3rAkS'})
for listing in listings:
    shoes_link= listing.find_all("a").a.get("href")
    base_url="https://www.adidas.com.my/en/men-shoes/";
    cmplt_lnk=base_url+shoes_link
    links.append(cmplt_lnk)
    print(links)


my code :
when i run this i am not getting any result

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALJzFip9tmQTxygmWpqpc%3DqKHipNNf4HXhofGFXOPy3pp4bMCw%40mail.gmail.com.

Reply via email to