From 77b183be8dec97bf8dad0fcdad1d5ad75214dc64 Mon Sep 17 00:00:00 2001 From: fzozyurt Date: Sat, 28 Dec 2024 17:10:50 +0300 Subject: [PATCH] URL add parameter : stock=1 --- Scripts/bkm_scrape_categories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/bkm_scrape_categories.py b/Scripts/bkm_scrape_categories.py index a602f46..c2876b2 100644 --- a/Scripts/bkm_scrape_categories.py +++ b/Scripts/bkm_scrape_categories.py @@ -30,7 +30,7 @@ def scrape_categories(): soup = BeautifulSoup(html_icerigi, "html.parser") kategori=soup.find_all("a", class_=["w-100 d-block block-title"]) for a in range(len(kategori)): - link = {'name': str(kategori[a].text), 'url': str(site + "" + (kategori[a]['href']))} + link = {'name': str(kategori[a].text), 'url': str(site + "" + (kategori[a]['href'])+'?&stock=1')} links.append(link) logging.debug("Found category: %s", link)