VideoHelp Forum


Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!


Try StreamFab Downloader and download streaming video from Youtube, Netflix, Amazon! Download free trial.


+ Reply to Thread
Page 9 of 9
FirstFirst ... 7 8 9
Results 241 to 250 of 250
Thread
  1. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Originally Posted by mike444 View Post
    Can anyone help me with this video by chance? https://www.cbs.com/shows/video/uf_9O7suT2KGy26NbOZApraExks_oaq7/
    Code:
    N_m3u8DL-RE "https://vod-gcs-cedexis.cbsaavideo.com/intl_vms/2024/08/12/2362971715908/2766185_cenc_dash/stream.mpd" --key b63a838288264278b7df4060d743c3a8:e1b83464108cd9e5a1db42c6a66e6c32 --save-dir "media\cbs_com" --save-name "Lets_Make_A_Deal_-_Otter_Chaos" -M format=mkv
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  2. Member
    Join Date
    Oct 2023
    Location
    Afghanistan
    Search PM
    Originally Posted by 2nHxWW6GkN1l916N3ayz8HQoi View Post
    Code:
    import re
    
    import fake_useragent
    import requests
    from pywidevine.cdm import Cdm
    from pywidevine.device import Device
    from pywidevine.pssh import PSSH
    
    CBS_URL = "https://www.cbs.com/shows/video/68PUsXt2fO2jXaA6G4NNrUhyvAuMP545/"
    
    response = requests.get(CBS_URL, headers={
        "User-Agent": fake_useragent.UserAgent().random
    }).content.decode()
    bearer = re.search(r'"Authorization":"(Bearer .+?)"', response).group(1)
    
    manifest = re.search(r'"streamingUrl":"(.+?)"', response)
    manifest = manifest.group(1).replace("\\/", "/")
    
    license_url = re.search(r'"widevine":{"url":"(.+?)"', response)
    license_url = license_url.group(1).replace("\\/", "/")
    
    response = requests.get(manifest).content.decode()
    pssh_value = str(min(re.findall(r'<cenc:pssh>(.+?)</cenc:pssh>', response), key=len))
    
    WVD_FILE = "./device_wvd_file.wvd"
    pssh_value = PSSH(pssh_value)
    device = Device.load(WVD_FILE)
    cdm = Cdm.from_device(device)
    session_id = cdm.open()
    
    challenge = cdm.get_license_challenge(session_id, pssh_value)
    licence = requests.post(license_url, data=challenge, headers={
        'Authorization': bearer
    })
    
    licence.raise_for_status()
    cdm.parse_license(session_id, licence.content)
    
    for key in cdm.get_keys(session_id):
        print(f"[{key.type}] {key.kid.hex}:{key.key.hex()}")
    cdm.close(session_id)
    Thanks pepe. I was able to use this as a starting point to build my own CBS script in the style I wanted to match all the others I've made.

    Incidentally what's the go with the fake user agent ? I did find that CBS failed every time I used a constant user agent. This is the first time I've seen a script with the fake user agent to be honest. Is CBS more likely to work with the randomness ?
    Quote Quote  
  3. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    You're welcome @bill. Honestly, I ditched fake user agent. It's a nice python package and their intention is good, but I couldn't use it as a general solution for all sites that need user agent in their headers. I only used it at the beginning when I barely started writing scrapers, cbs being my first. One site that doesn't work for most UAs provided by fake is vtmgo.be

    One solution would be to allow the user to set their own user agent in a config file / or passed as parameter. You can decide the best approach. Also that script is also outdated. You need more than a user agent. I think curl_cffi as well. If you have problems, you can also just look at other people's work. There's currently a working version in my downloader and I don't mind if you look at it to see how certain things were solved. If I minded, I wouldn't have made it public
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  4. Member
    Join Date
    Oct 2023
    Location
    Afghanistan
    Search PM
    Originally Posted by 2nHxWW6GkN1l916N3ayz8HQoi View Post
    and I don't mind if you look at it to see how certain things were solved. If I minded, I wouldn't have made it public
    This is how I've managed to learn so much in the last 10 months since joining. I pretty much inspect every piece of code I see. I really appreciate the code that's shared here for people to see.
    Quote Quote  
  5. Member
    Join Date
    Aug 2024
    Location
    United States
    Search Comp PM
    Originally Posted by 2nHxWW6GkN1l916N3ayz8HQoi View Post
    Originally Posted by mike444 View Post
    Can anyone help me with this video by chance? https://www.cbs.com/shows/video/uf_9O7suT2KGy26NbOZApraExks_oaq7/
    Code:
    N_m3u8DL-RE "https://vod-gcs-cedexis.cbsaavideo.com/intl_vms/2024/08/12/2362971715908/2766185_cenc_dash/stream.mpd" --key b63a838288264278b7df4060d743c3a8:e1b83464108cd9e5a1db42c6a66e6c32 --save-dir "media\cbs_com" --save-name "Lets_Make_A_Deal_-_Otter_Chaos" -M format=mkv
    Appreciate the reply -- I'm new here, any pointers on what I would do this to get the download link? Or if someone is open to sharing the downloaded video that'd be a huge help. Thanks guys <3
    Quote Quote  
  6. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Originally Posted by mike444 View Post
    Appreciate the reply -- I'm new here, any pointers on what I would do this to get the download link? Or if someone is open to sharing the downloaded video that'd be a huge help. Thanks guys <3
    I'm sure someone will give you the download link with the uploaded video. So I'm gonna leave instructions for N_m3u8DL-RE so others can see since it's more useful in the long run. Download and put in the same folder the following:
    - N_m3u8DL-RE
    - ffmpeg
    - mp4decrypt

    Then run any n_m3u8dl-re command someone gives you
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  7. Hi. Can anyone help with a download for this one video for me. I'd really appreciate it. Thank you so much in advance.

    https://www.cbs.com/shows/video/2C0I0sNVvzy__qilX0HkIhq_Cf0M3bum/
    Quote Quote  
  8. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Code:
    N_m3u8DL-RE "https://vod-gcs-cedexis.cbsaavideo.com/intl_vms/2024/09/12/2371424323636/2833745_cenc_dash/stream.mpd" --key 04497065d22b4d08b9b9733c2e2d349e:bb6048781200bdb21a5a9c0314cc9259 --save-dir "media\cbs_com" --save-name "The_Young_and_The_Restless_-_9172024" -M format=mkv
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  9. I'm looking for a download for this video if there is anyone willing to help me:

    https://www.cbs.com/shows/video/2C0I0sNVvzy__qilX0HkIhq_Cf0M3bum/
    Quote Quote  
  10. Member
    Join Date
    Dec 2021
    Location
    england
    Search Comp PM
    Originally Posted by Mich79 View Post
    I'm looking for a download for this video if there is anyone willing to help me:

    https://www.cbs.com/shows/video/2C0I0sNVvzy__qilX0HkIhq_Cf0M3bum/
    this is not warez site (direct download link) there are many out there. here is learn how to install and download by your self
    here dl link but next time I will not upload video
    https://gofile.io/d/F5XcPF
    Last edited by iamghost; 18th Sep 2024 at 03:00.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!