Hi it seems they have changed something! So I can no longer download udemy encrypted videos! I know how to get keys and decrypt them but I cant even seem to download encrypted ones.
https://www.udemy.com/assets/33655982/encrypted-files/out/v1/a2e95797f62f46db9b1b310d2...AJk0zjDB-UYOGQ
"headers": {
"authority": "www.udemy.com",
"accept-language": "en-US,en;q=0.9",
"cache-control": "no-cache",
"cookie": "_gcl_au=1.1.698377697.1682381080; ud_credit_last_seen=None; csrftoken=EScG14j5GNpJWi4qyZriKl7rQx8NL2uaFpCQioUS kfEqeJoSTWOmsnITs9ePct2P; __stripe_mid=379c0ad6-5b33-45bf-a58f-f1fa5e12a2651d0366; blisspoint_fpc=ac067a0c-1f39-4fff-a323-6abc4d28a298; intercom-device-id-sehj53dd=767a3e9e-edfc-4006-9254-5204ba10158b; ud_firstvisit=2023-04-25T00:04:26.100595+00:00:1pr6AU:4NVbSUMmddCgVGh-6PIeiIfWkJo; _rdt_uuid=1682381085316.bbaa1caf-65ae-4df0-a8a6-dcbdf1f9ed14; __ssid=a02a05e7d1be1ac0b10908c6302e75a; __udmy_1_a12z_c24t=VGhlIGFuc3dlciB0byBsaWZlLCB0aGU gdW5pdmVyc2UsIGFuZCBldmVyeXRoaW5nIGlzIDQy; __udmy_2_v57r=5ce8f5f3a6894712bb185dc63222c782; _fbp=fb.1.1682381104399.1762507280; _pxvid=b7bd69a1-e2fc-11ed-b1cf-1605e2afe1bc; access_token=IBJYhEA3sHoTkD6UKkC1ht43OJXfqq3ddelja iMd; client_id=bd2565cb7b0c313f5e9bae44961e8db2; dj_session_id=84940pluz7on9943cf0ndk2jk3qoq515; ki_s=227428%3A0.0.0.0.0; ud_last_auth_information=\"{\\\"backend\\\": \\\"udemy-auth\\\"\\054 \\\"suggested_user_email\\\": \\\"os6yzky@mydefipet.live\\\"\\054 \\\"suggested_user_name\\\": \\\"Amcstocks.Com\\\"\\054 \\\"suggested_user_avatar\\\": \\\"https://img-c.udemycdn.com/user/50x50/anonymous_3.png\\\"}:1pymc8:ZwPyq5-8I4Offw1Qpsoa8P1_LnQ\"; ud_locale=en_US; ud_user_jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.e yJpZCI6MjMxMzE5ODgyLCJlbWFpbCI6Im9zNnl6a3lAbXlkZWZ pcGV0LmxpdmUiLCJpc19zdXBlcnVzZXIiOmZhbHNlLCJncm91c F9pZHMiOltdfQ.5nydKjGOT2cF068bxMYrWlO4kbB8M4Wfti0n 7jxZ4nc; existing_user=true; optimizelyEndUserId=oeu1684244040254r0.13293095334 395666; mute=0; ki_r=; __udmy_4_a12z=29e99d65c8b8e7b352146267ae1637e7c768 592555d8297ea3269973ed97b292; ud_cache_brand=INen_US; ud_cache_marketplace_country=IN; ud_cache_price_country=US; ud_cache_release=32f884055bd587068966; ud_cache_user=231319882; ud_cache_version=1; ud_cache_language=en; ud_cache_device=None; ud_cache_logged_in=1; __cfruid=6b5f82da2cefc826653104d17d5edfa0b7221071-1684577299; pxcts=3f15b089-f6f6-11ed-8b2a-4d724c426841; ud_cache_campaign_code=CP51623A; FPAU=1.1.698377697.1682381080; _gid=GA1.2.1991142338.1684577314; fs_uid=#ZD1RP#4526727736840192:4943236695052288::: #/1716113316; hlsJsStartLevel=0; query_session_identifier_id=MITNG2wNT_yN-kxDeRD9wA; last_searched_phrase=781ecf76433fe7a2ec6d87ebb9b04 d1f; seen=1; ud_credit_unseen=0; muxData=mux_viewer_id=8b2acf97-f1f0-4b6f-aaaf-132b56be3606&msn=0.5334443904236386&sid=c200cd05-1103-4b83-8482-80decfd15525&sst=1684586120342&sex=1684587620342; __cf_bm=4vGhha8fa2Nd4Zdbk9Ajj3bkpYnpvm1w7rUpVdxTVc U-1684586120-0-AR2PRczl98dpdLS2Nb6O/8ew/nIas5A2rOZG6zi5zBH5xWBBxV+ZKTOuMV1Lv+v/1uhCQqoOKqeMheKR++3IdBd0sgZ9itB7MFE24Ce8YdfmUAji2E Exv+qF027vB7rNeCNX0qdTUTypkpdMIxkC/Aw=; ab.storage.deviceId.5cefca91-d218-4b04-8bdd-c8876ec1908d=%7B%22g%22%3A%229e8af8d1-d6f7-ceaa-e824-954020f9543c%22%2C%22c%22%3A1678155124355%2C%22l%2 2%3A1684586123994%7D; ab.storage.userId.5cefca91-d218-4b04-8bdd-c8876ec1908d=%7B%22g%22%3A%22231319882%22%2C%22c%2 2%3A1684212542811%2C%22l%22%3A1684586123994%7D; ab.storage.sessionId.5cefca91-d218-4b04-8bdd-c8876ec1908d=%7B%22g%22%3A%22be6352bf-13eb-c9de-8094-5c5ab144fc44%22%2C%22e%22%3A1684587931362%2C%22c%2 2%3A1684586123994%2C%22l%22%3A1684586131362%7D; ki_t=1682381087227%3B1684577303636%3B1684586131448 %3B5%3B51; _ga=GA1.2.1962129055.1682381079; _ga_7YMFEFLR6Q=GS1.1.1684586120.13.1.1684586441.60 .0.0; OptanonConsent=isGpcEnabled=0&datestamp=Sat+May+20 +2023+18%3A10%3A42+GMT%2B0530+(India+Standard+Time )&version=202211.2.0&isIABGlobal=false&hosts=&cons entId=36129ac2-5d49-48d9-9bb7-cd042a63dd8f&interactionCount=1&landingPath=NotLan dingPage&groups=C0001%3A1%2CC0003%3A1%2CC0005%3A1% 2CC0002%3A1%2CC0004%3A1&AwaitingReconsent=false; _gat=1; _px2=eyJ1IjoiODg1MjAxNTAtZjcwYi0xMWVkLWJhNzMtMWI4M DI4MzkxYTE5IiwidiI6ImI3YmQ2OWExLWUyZmMtMTFlZC1iMWN mLTE2MDVlMmFmZTFiYyIsInQiOjE2ODQ1ODY5NDI5OTMsImgiO iIzYWQ5ZDdlY2MxMDViMzdmM2MwY2M4NWM0MjQwY2E3OGM0ZWZ jZDE3YTdkNjkxNjViMGNlMGU3MjU3ZTUzYjM4In0=; _px3=dd717bec8959ea4b273bcdd1ec42b815268f6070e0a3d 0ede3d554e8e0892845:q76acGXzA4nvgvmoc5mOPq+S5SAH6u UbzuWw/+1TcOl0KB7B/0BdHnpyYqnHVyI04rsIzYhJ0mMTILFGhzMRgg==:1000:rdsIY tqaC1O0LVdpQtPzi89W+aN3UP6mtY3JAWBIYPRIJ1LN6uN4Wtj gFegWwaBFoHJepMNDETuxIAwbUSJS0xt62a5YU0PSgjZS8+h4Z ODEjBFroze1Qe5nHJ6oEtQZNmNHQ87Kko+Y//CQ4GnT39cLToEvHBJR+PpgOTzwsHSe+ozSpO4j0l1uG5+hJAeR Jj1t1lyMGc2etlAT//hBYw==; intercom-session-sehj53dd=RGpRSXl3MDArZ1VLNE5rVm52ampiMzBMMlZCNE03N 0dKYnIyTWhpMnpicHVhZi9GV25OUlFhWGxRZm5pZnZxaS0tM2R 4YlNPcTB4ak1abFgwSEJ0VFFQQT09--5f8a1444aac1366b9c81db3366ec9b860d189997; _dd_s=rum=0&expire=1684587341805; evi=\"3@ZKNH1fBh3L8qWIhyhchieMXSPsdqr_IGEKlHXjikhw UKPfoEbnrHWHuVbGGX1ViKu0ZUNDK5gQBNEEsn_T5IDGvkgUEo l1aNWM0=\"; ud_rule_vars=\"eJxljkFuwyAQRa9isW1tDQPYwFksIYyHFjU VCuBsoty9REmlqln-0bz3_5U1Xz6o0e4uqaaWi1WBdFRR-FkbuXDcNq7VHmaBiGHRaEPOX4mYHdh1ZTGV2h6s232jtd9XhoB iBDmiGgAsSMvltMwgpH67Z1jZe_86-Y62fIRP14qPMQVX81ECuYsvyW-np61S_gMUOh9UX9vUiDBwtBKsFJMWxhjx0ha6v9Jzb0vf_wx8G UBYITs0gdaGy1_Djd1-AAQPWC4=:1q0Lt5:nHctPRKKxcAvMkTo0BCGqxaLYEc\"; eventing_session_id=0ZqWJrsISVyB6RC_BN3clA-1684588244214",
"pragma": "no-cache",
"referer": "https://www.udemy.com/course/100-days-of-code-web-development-bootcamp/learn/lecture/26373390",
"sec-ch-ua": "\"Google Chrome\";v=\"113\", \"Chromium\";v=\"113\", \"Not-A.Brand\";v=\"24\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
Help me download it via yt-dlp or Nm3u8DL-RE.
+ Reply to Thread
Results 1 to 15 of 15
-
-
Try including --referer and/or --user-agent with yt-dlp. If that doesn't work, try "--cookies-from-browser chrome".
If all else fails, you can simply download the mpd and open it locally with N_m3u8DL-RE:
Code:N_m3u8DL-RE "./index.mpd" 15:20:18.090 INFO : N_m3u8DL-RE (Beta version) 20230412 15:20:18.530 INFO : Loading URL: ./index.mpd 15:20:18.531 INFO : Content Matched: Dynamic Adaptive Streaming over HTTP 15:20:18.531 INFO : Parsing streams... 15:20:18.545 INFO : Extracted, there are 10 streams, with 5 basic streams, 5 audio streams, 0 subtitle streams 15:20:18.545 INFO : Vid *CENC 1920x1080 | 159 Kbps | 5 | 30 | avc1.4D4028 | 20 Segments | ~01m56s 15:20:18.545 INFO : Vid *CENC 1280x720 | 104 Kbps | 4 | 30 | avc1.4D401F | 20 Segments | ~01m56s 15:20:18.546 INFO : Vid *CENC 1024x576 | 83 Kbps | 3 | 30 | avc1.4D401F | 20 Segments | ~01m56s 15:20:18.546 INFO : Vid *CENC 768x432 | 65 Kbps | 2 | 30 | avc1.4D401E | 20 Segments | ~01m56s 15:20:18.546 INFO : Vid *CENC 640x360 | 49 Kbps | 1 | 30 | avc1.4D401E | 20 Segments | ~01m56s 15:20:18.547 INFO : Aud *CENC 6 | 64 Kbps | mp4a.40.5 | eng | 2CH | 20 Segments | ~01m56s 15:20:18.547 INFO : Aud *CENC 7 | 64 Kbps | mp4a.40.5 | eng | 2CH | 20 Segments | ~01m56s 15:20:18.547 INFO : Aud *CENC 8 | 64 Kbps | mp4a.40.5 | eng | 2CH | 20 Segments | ~01m56s 15:20:18.548 INFO : Aud *CENC 9 | 64 Kbps | mp4a.40.5 | eng | 2CH | 20 Segments | ~01m56s 15:20:18.548 INFO : Aud *CENC 10 | 64 Kbps | mp4a.40.5 | eng | 2CH | 20 Segments | ~01m56s 15:20:44.463 INFO : Parsing streams... 15:20:44.464 INFO : Selected streams: 15:20:44.464 INFO : Vid *CENC 1920x1080 | 159 Kbps | 5 | 30 | avc1.4D4028 | 20 Segments | ~01m56s 15:20:44.465 INFO : Aud *CENC 6 | 64 Kbps | mp4a.40.5 | eng | 2CH | 20 Segments | ~01m56s 15:20:44.465 INFO : Save Name: index_2023-05-20_15-20-44 15:20:44.469 INFO : Start downloading...Vid 1920x1080 | 159 Kbps | 5 | 30 | avc1.4D4028 15:20:44.470 WARN : When CENC encryption is detected, binary merging is automatically enabled 15:20:45.323 WARN : Type: cenc 15:20:45.326 WARN : PSSH(WV): CAESEHN7NnPTSU6AkvS3PsZCG9YaC2J1eWRybWtleW9zIhBzezZz00lOgJL0tz7GQhvWKgJIRA== 15:20:45.329 WARN : KID: 737b3673d3494e8092f4b73ec6421bd6 15:20:45.332 WARN : Reading media info... 15:20:45.686 INFO : NaN: Video, h264 (avc1), 1920x1080 15:20:49.206 INFO : Binary merging... 15:20:49.385 INFO : Start downloading...Aud 6 | 64 Kbps | mp4a.40.5 | eng | 2CH 15:20:49.642 WARN : Type: cenc 15:20:49.646 WARN : PSSH(WV): CAESEHN7NnPTSU6AkvS3PsZCG9YaC2J1eWRybWtleW9zIhBzezZz00lOgJL0tz7GQhvWKgJIRA== 15:20:49.649 WARN : KID: 737b3673d3494e8092f4b73ec6421bd6 15:20:49.653 WARN : Reading media info... 15:20:50.053 INFO : NaN: Audio, aac (mp4a) 15:20:53.112 INFO : Binary merging... 15:20:53.184 INFO : Done
-
For referer n UA in yt-dlp and cookies from chrome.
ERROR: [udemy:course] assets: Unable to download webpage: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
All else failed yes downloading it locally helps and works but very redundant for my downloader script to function!
If anyone can figure out! Let me know! Thanks! -
I'm unable to get the keys, I get 403, any clue?
I dumped a CDM from Android studio, set the headers including the cookie values
Does it work with udemy?
HTTPError: 403 Client Error: Forbidden for url: https://www.udemy.com/api-2.0/media-license-server/validate-auth-token?drm_type=widevi...ciOiJFUzI1NiJ9.. -
-
Getvwkeys or this group https://t.me/chromedecrypt/59
-
-
-
Just check if your cdm is revoked or not! just install pywidevine (pip install pywidevine) - make sure the scripts folder is in the env path! Then use pywidevine test pathtoyourwvd! it if is parsed then your wvd works!
Last edited by Sadomasochist; 5th Jun 2023 at 10:45.
Similar Threads
-
MPD download giving an error
By DarkSmile in forum Video Streaming DownloadingReplies: 10Last Post: 29th Oct 2022, 04:39 -
mpd protected live streams
By Moneyshot in forum Video Streaming DownloadingReplies: 0Last Post: 11th Feb 2022, 08:31 -
yt-dlp error "HTTP Error 403: Forbidden". MPD downloading [ABC.com site]
By nikshell29 in forum Video Streaming DownloadingReplies: 5Last Post: 26th Aug 2021, 15:18 -
How to get MPD with HTML Error 405?
By jdanielw in forum Video Streaming DownloadingReplies: 5Last Post: 21st Apr 2021, 18:29 -
Error 403 from server donwloading a MPD
By Fathom in forum Video Streaming DownloadingReplies: 11Last Post: 2nd Feb 2021, 01:52