Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions cgi-bin/product_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@

soup = BeautifulSoup(req,"lxml")

# it will work to remove some expection
try:
a=10
b=0
c=a/b
print(c)
except Exception:
print("Cant divide by zero")

for img_div in soup.find_all("div",{"class":"s-item-container"}):
for img_div2 in img_div.find_all("div",{"class":"a-fixed-left-grid"}):
Expand Down