Skip to content

Commit d45526a

Browse files
author
TECHTANIC
committed
.
1 parent 089ee39 commit d45526a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CLI/duce.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ def real_discount():
113113
for page in range(1, 4):
114114
r = requests.get("https://app.real.discount/stores/Udemy?page=" + str(page))
115115
soup = bs(r.content, "html5lib")
116-
all = soup.find_all("div", class_="card-body")
116+
all = soup.find_all("div", class_="col-xl-4 col-md-6")
117117
big_all.extend(all)
118118
rd_bar = tqdm(total=len(big_all), desc="Real Discount")
119119

120120
for index, items in enumerate(big_all):
121121
rd_bar.update(1)
122-
title = items.a.h3.text
122+
title = items.h3.text
123123
url = "https://app.real.discount" + items.a["href"]
124124
r = requests.get(url)
125125
soup = bs(r.content, "html5lib")

COLAB/DUCE.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,13 @@
182182
" for page in range(1, 4):\n",
183183
" r = requests.get(\"https://app.real.discount/stores/Udemy?page=\" + str(page))\n",
184184
" soup = bs(r.content, \"html5lib\")\n",
185-
" all = soup.find_all(\"div\", class_=\"card-body\")\n",
185+
" all = soup.find_all(\"div\", class_=\"col-xl-4 col-md-6\")\n",
186186
" big_all.extend(all)\n",
187187
" rd_bar = tqdm(total=len(big_all), desc=\"Real Discount\")\n",
188188
"\n",
189189
" for index, items in enumerate(big_all):\n",
190190
" rd_bar.update(1)\n",
191-
" title = items.a.h3.text\n",
191+
" title = items.h3.text\n",
192192
" url = \"https://app.real.discount\" + items.a[\"href\"]\n",
193193
" r = requests.get(url)\n",
194194
" soup = bs(r.content, \"html5lib\")\n",

GUI/duce.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def real_discount():
132132
for page in range(1, 4):
133133
r = requests.get("https://app.real.discount/stores/Udemy?page=" + str(page))
134134
soup = bs(r.content, "html5lib")
135-
all = soup.find_all("div", class_="card-body")
135+
all = soup.find_all("div", class_="col-xl-4 col-md-6")
136136
big_all.extend(all)
137137
main_window["pReal Discount"].update(page)
138138
main_window["pReal Discount"].update(0, max=len(big_all))

0 commit comments

Comments
 (0)