-
-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: 'NoneType' object has no attribute 'group' #227
Comments
something is wrong with only some courses which are giving this type of error [06:14:03] [udemy-downloader] [_get:1115] ERROR: 403 Forbidden, retrying (attempt 8 )... |
use the feat/refactor branch |
@Puyodead1 same text error in this branch also. may be you think it is because other language issue but some english courses also giving the same error. |
hi, I have the same issue and it worked after switch to feat/refactor branch. |
@swahpy can you give me link of feat/refactor branch ? |
It doesn't exist anymore. Use master |
@Puyodead1 master branch is still not supporting personal pro plan account |
Yes it does, I can confirm that because I am using a trial account right now. You might not be using the latest version. Make sure you have the /learn part in the url |
@Puyodead1 i am using url in this format yes i am using latest version of master branch and one more thing this new updated script is not removing enc files after dec. |
@Puyodead1 please check this. this is with your latest script M:\udemy-downloader-master_3>python main.py -c https://www.udemy.com/course/excel-for-analysts/learn -o M:\Tut --download-assets M:\udemy-downloader-master_3> |
You're not using -sc or specifying a browser to extract cookies from |
@Puyodead1 same error when i am using this command same error i am getting when using this command evan my bearer token is correct and working and i added it also in .env file but getting same above error |
Bearer tokens will not work for subscription courses. Are you logged in to udemy in Chrome? Make sure you also close chrome before running the command |
@Puyodead1 yes i am logged in to udemy in chrome let me try with 2 more things then i will confirm you its working or not. |
hi, apologize for late reply. Just as Puyodead1 mentioned, feat/refactor was merged into main branch. So you can use main instead from now on. |
hi jaan143, can you help to confirm if it works or not? Thank you. |
@swahpy it is not working for me sadly :( i tried many time evan i am using --browser file also but this is also giving me same error. I don't know @Puyodead1 how he is using this with subscription account i really want this :( |
@Puyodead1 i import this cookies.txt file in browser to check is it working fine or not where udemy was not login in that browser and cookies is imported successfully and udemy site loging in. so then i try to use --browser firefox also and --browser file too but both giving me error File "M:\udemy-downloader-master_3\main.py", line 2016, in |
eeeeee, i suppose i can try, either email me cookies or login credentials. mailto:puyodead@proton.me |
@Puyodead1 please check your email i sent and attached cookies.txt file |
works perfectly fine for me |
@Puyodead1 can you please reply that email with your this project ? or just main.py file |
I am using the latest version, commit 745ea11 from 3 weeks ago |
@Puyodead1 as i told you before i am also using same project which you updated 2 weeks
ago i think. but i am using portable python not installed python so may be
this can be the reason or i am using other account with access token also
in same project to download some enrolled courses and may be project is
reading env file also with cookies file or may be python cache issue and i
need to delete cache if have
…On Sat, 10 Aug 2024 at 1:28 am, Puyodead1 ***@***.***> wrote:
@Puyodead1 <https://github.com/Puyodead1> can you please reply that email
with your this project ? or just main.py file i am evan using latest
project which you updated 2 weeks ago but i don’t know why i am getting
this error. so i want to use project which you run now to check this cookies
I am using the latest version, commit 745ea11
<745ea11>
from 3 weeks ago
—
Reply to this email directly, view it on GitHub
<#227 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADSRPSLHDHE7CXKWBNRQV7DZQUQ5BAVCNFSM6AAAAABKBXMMNGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZYGY4TSNZZGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
you could debug the program to see what the exact error is and so try to fix it. pdb will provide much detailed information. |
its a python script, there is no pdb |
@Puyodead1 i was right there was project cache issue and i deleted pycache folder and i remove bearer token of other account from env file and then i run project and it is working fine now. |
@Puyodead1 Dear please can you help me about this error ? i am getting this in subscription course [12:36:44] [udemy-downloader] [parse_new:1708] ERROR: > Error downloading asset |
What happened?
while downloading course i am getting this error in reaching specific lecture.
i re-run script but still script giving error when reaching on this lecture.
[04:38:09] [udemy-downloader] [parse_new:1788] INFO: > Processing 0 asset(s) for lecture...
Traceback (most recent call last):
File "D:\data\downloader-master\main.py", line 2068, in
if name == "main":
^^^^^^
File "D:\data\downloader-master\main.py", line 2061, in main
File "D:\data\downloader-master\main.py", line 1745, in parse_new
index = lecture.get("index") # this is lecture_counter
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\data\downloader-master\main.py", line 1006, in _parse_lecture
if stream_urls and isinstance(stream_urls, dict):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\data\downloader-master\main.py", line 523, in _extract_sources
out = self._extract_m3u8(download_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\data\downloader-master\main.py", line 587, in _extract_m3u8
asset_id = asset_id_re.search(url).group("id")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'
D:\data\downloader-master>
Expected Result
it will be great if can fix this issue and i can download this lecture
Branch
master/main
What operating systems are you seeing the problem on?
Windows
Relevant log output
No response
Other information
No response
The text was updated successfully, but these errors were encountered: