Skip to content

Commit 5900e06

Browse files
committed
.
1 parent 44b18bd commit 5900e06

File tree

6 files changed

+217
-139
lines changed

6 files changed

+217
-139
lines changed

CLI/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ requests
22
bs4
33
html5lib
44
colorama
5+
pyopenssl
56
tqdm
6-
git+https://github.com/VeNoMouS/cloudscraper@dev
7+
cloudscraper

COLAB/DUCE.ipynb

Lines changed: 88 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,39 +12,107 @@
1212
"name": "stdout",
1313
"output_type": "stream",
1414
"text": [
15-
"installing requests\n",
16-
"installing bs4\n",
17-
"installing html5lib\n",
18-
"installing colorama\n",
19-
"installing tqdm\n",
20-
"installing git+https://github.com/VeNoMouS/cloudscraper@dev\n",
15+
"installing 0/5\n",
16+
"installing 1/5\n",
17+
"installing 2/5\n",
18+
"installing 3/5\n",
19+
"installing 4/5\n",
20+
"installing 5/5\n",
2121
"\u001b[34mTrying to login\n",
22-
"Cloudflare is blocking your requests try again after an hour\n",
23-
"\u001b[31mLogin Error\"name='client_id', domain=None, path=None\"\n"
22+
"Too many logins per hour try later\n"
2423
]
2524
},
2625
{
2726
"name": "stderr",
2827
"output_type": "stream",
2928
"text": [
3029
"'kill' is not recognized as an internal or external command,\n",
31-
"operable program or batch file.\n",
32-
"E-next: 100%|██████████| 10/10 [00:00<?, ?it/s]\n",
33-
"IDownloadCoupons: 100%|██████████| 26/26 [00:00<00:00, 26533.31it/s]\n",
34-
"Course Vania: 53%|█████▎ | 16/30 [00:08<00:08, 1.64it/s]Exception in thread Thread-12:\n",
35-
"AttributeError: 'NoneType' object has no attribute 'a'\n",
36-
"Course Vania: 53%|█████▎ | 16/30 [00:09<00:07, 1.77it/s]\n",
37-
"Discudemy: 100%|██████████| 48/48 [00:27<00:00, 1.76it/s]\n",
38-
"Real Discount: 100%|██████████| 36/36 [00:38<00:00, 1.08s/it]\n",
39-
"Tutorial Bar: 100%|██████████| 36/36 [00:42<00:00, 1.18s/it]\n",
40-
"Udemy Freebies: 100%|██████████| 24/24 [00:57<00:00, 2.40s/it]\n"
30+
"operable program or batch file.\n"
4131
]
4232
},
4333
{
4434
"name": "stdout",
4535
"output_type": "stream",
4636
"text": [
47-
"\u001b[33m0 Spatial Analysis & Geospatial Data Science in Python \u001b[34mhttps://www.udemy.com/course/spatial-data-science-in-python/?couponCode=SEP_FIRST\n",
37+
"Too many logins per hour try later\n"
38+
]
39+
},
40+
{
41+
"name": "stderr",
42+
"output_type": "stream",
43+
"text": [
44+
"'kill' is not recognized as an internal or external command,\n",
45+
"operable program or batch file.\n"
46+
]
47+
},
48+
{
49+
"name": "stdout",
50+
"output_type": "stream",
51+
"text": [
52+
"Too many logins per hour try later\n"
53+
]
54+
},
55+
{
56+
"name": "stderr",
57+
"output_type": "stream",
58+
"text": [
59+
"'kill' is not recognized as an internal or external command,\n",
60+
"operable program or batch file.\n"
61+
]
62+
},
63+
{
64+
"name": "stdout",
65+
"output_type": "stream",
66+
"text": [
67+
"\u001b[31mLogin Error\n",
68+
"Traceback (most recent call last):\n",
69+
" File \"C:\\Users\\techt\\AppData\\Local\\Temp\\ipykernel_7432\\2229461906.py\", line 577, in <module>\n",
70+
" head, user, currency, s= check_login()\n",
71+
" File \"C:\\Users\\techt\\AppData\\Local\\Temp\\ipykernel_7432\\2229461906.py\", line 386, in check_login\n",
72+
" cookies = cookiejar(r.cookies[\"client_id\"], r.cookies[\"access_token\"], csrf_token)\n",
73+
" File \"C:\\Users\\techt\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\requests\\cookies.py\", line 328, in __getitem__\n",
74+
" return self._find_no_duplicates(name)\n",
75+
" File \"C:\\Users\\techt\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\requests\\cookies.py\", line 399, in _find_no_duplicates\n",
76+
" raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))\n",
77+
"KeyError: \"name='client_id', domain=None, path=None\"\n",
78+
"\n"
79+
]
80+
},
81+
{
82+
"name": "stderr",
83+
"output_type": "stream",
84+
"text": [
85+
"E-next: 100%|██████████| 19/19 [00:00<00:00, 37930.40it/s]\n",
86+
"Discudemy: 0%| | 0/48 [00:00<?, ?it/s]it/s]Exception in thread Thread-12 (discudemy):\n",
87+
"Traceback (most recent call last):\n",
88+
" File \"C:\\Users\\techt\\AppData\\Local\\Programs\\Python\\Python310\\lib\\threading.py\", line 1009, in _bootstrap_inner\n",
89+
" self.run()\n",
90+
" File \"C:\\Users\\techt\\AppData\\Local\\Programs\\Python\\Python310\\lib\\threading.py\", line 946, in run\n",
91+
" self._target(*self._args, **self._kwargs)\n",
92+
" File \"C:\\Users\\techt\\AppData\\Local\\Temp\\ipykernel_7432\\2229461906.py\", line 87, in discudemy\n",
93+
" File \"C:\\Users\\techt\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\bs4\\element.py\", line 1486, in __getitem__\n",
94+
" return self.attrs[key]\n",
95+
"KeyError: 'href'\n",
96+
"Discudemy: 2%|▏ | 1/48 [00:00<00:00, 380.44it/s]\n",
97+
"IDownloadCoupons: 100%|██████████| 45/45 [00:00<?, ?it/s]/s]t]\n",
98+
"Course Vania: 100%|██████████| 30/30 [00:24<00:00, 1.24it/s]]]\n",
99+
"Tutorial Bar: 100%|██████████| 36/36 [00:46<00:00, 1.28s/it]t]\n",
100+
"Udemy Freebies: 100%|██████████| 24/24 [00:49<00:00, 2.06s/it]\n",
101+
"Real Discount: 100%|██████████| 24/24 [01:02<00:00, 2.59s/it]\n"
102+
]
103+
},
104+
{
105+
"name": "stdout",
106+
"output_type": "stream",
107+
"text": [
108+
"\u001b[33m0 The Complete Intro to Machine Learning [Get Free Coupons] \u001b[34mhttps://www.udemy.com/course/the-complete-intro-to-machine-learning-with-python/?couponCode=330FA58ECD46FA65837E\n",
109+
"Traceback (most recent call last):\n",
110+
" File \"C:\\Users\\techt\\AppData\\Local\\Temp\\ipykernel_7432\\2229461906.py\", line 567, in main1\n",
111+
" auto(remove_duplicates(links_ls))\n",
112+
" File \"C:\\Users\\techt\\AppData\\Local\\Temp\\ipykernel_7432\\2229461906.py\", line 466, in auto\n",
113+
" purchased, amount = course_landing_api(course_id)\n",
114+
" File \"C:\\Users\\techt\\AppData\\Local\\Temp\\ipykernel_7432\\2229461906.py\", line 309, in course_landing_api\n",
115+
" r = s.get(\n",
48116
"NameError: name 's' is not defined\n",
49117
"\n"
50118
]
@@ -675,7 +743,7 @@
675743
"name": "python",
676744
"nbconvert_exporter": "python",
677745
"pygments_lexer": "ipython3",
678-
"version": "3.9.6"
746+
"version": "3.10.0"
679747
},
680748
"metadata": {
681749
"interpreter": {

COLAB/tempCodeRunnerFile.ipynb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
e = traceback.format_exc()
3+
print(e)

0 commit comments

Comments
 (0)