freyta / wwe-network-downloader Goto Github PK
View Code? Open in Web Editor NEWMy own WWE downloader.
My own WWE downloader.
Hello, I am getting the following error:
Downloads\wwe.py:10: SyntaxWarning: invalid escape sequence '\d' time_matches = re.match("\\b(\d{2}):\\b(\d{2}):\\b(\d{2})", time)
I have python 3.12.3 and am using the default files downloaded from github. Any Idea what this is and how to fix it?
Trying to figure out how to get this working and I am greeted with this error.
python3 main.py -t https://watch.wwe.com/episode/Raw-7157 Traceback (most recent call last): File "main.py", line 1, in <module> import wwe File "/home/owner/Documents/git/WWE-Network-Downloader/wwe.py", line 6, in <module> import arrow, datetime ModuleNotFoundError: No module named 'arrow'
A good amount of videos have subtitles, if you were interested in adding them in:
Sample code:
def get_subtitle(self, stream_link, episode_title):
print("\nStarting to write subtitle")
stream = self._session.get(stream_link, headers=CONSTANTS.REALM_HEADERS).json()
if 'subtitles' in stream:
for subtitle in stream['subtitles']:
if subtitle.get('format') == 'srt':
subtitle_url = subtitle['url']
r = requests.get(subtitle_url, allow_redirects=True)
open("{}/{}.srt".format(CONSTANTS.OUTPUT_FOLDER, episode_title), "wb").write(r.content)
print("Finished writing subtitle")
and add to the ffmpeg command: -i input.srt -c copy -c:s mov_text
(Or you could switch to MKV, but that would require reformatting the chapter-ized output)
Add support for processing a file containing multiple video URL's. Same functionality as the '--batch-file' option from yt-dlp.
Cannot download any of the WWE Kickoff Shows due to an error with the "episodeName" variable. Not sure if the script can't pull the episode name or if this is an issue because these videos are not a part of a series. I can download all other content from the network just fine.
python3 main.py -t "https://watch.wwe.com/program/Money-in-the-Bank-2022-Kickoff-182464" Succesfully logged in Traceback (most recent call last): File "main.py", line 113, in <module> video_link = account.get_video_info(EPISODE) File "/home/ubuntu/Downloads/WWE-Network-Downloader/wwe.py", line 192, in get_video_info ppv_title = entry["episodeName"] KeyError: 'episodeName'
Hello
My downloads fail with the following message
c:\temp\WWE-Network-Downloader-master>python main.py -q 3 -t https://watch.wwe.c
om/program/CM-Punk-Best-in-the-World-12316
Succesfully logged in
Got the video information
aac files finished downloading
ts files finished downloading
Starting to wrtie the metadata file
Finished writing the metadata title
Writing stream title
Finished writing stream title
Traceback (most recent call last):
File "main.py", line 175, in
os.makedirs(CONSTANTS.OUTPUT_FOLDER + "/" + series_info[0])
File "C:\Users\crafciak31\AppData\Local\Programs\Python\Python38\lib\os.py", l
ine 223, in makedirs
mkdir(name, mode)
NotADirectoryError: [WinError 267] Nazwa katalogu jest nieprawidłowa (the name of the catalog is invalid): 'output/WWE CM Punk: Best in the World'
I have a wwe network account but the prohram just spits out enter a username and or password. but with no way to enter this, any help?
This program works fantastic! I'm just running into an occasional issue where some videos just won't download. It goes through the whole process only to give a "no such file or directory" error in red. Do you know how I can fix this?
Hi Freyta,
i'm trying to download all episodes of WWE 24 documentary series. It worked for almost all episodes, only one is not working:
Succesfully logged in
Traceback (most recent call last):
File "/media/wilhelde/Daten/WWE24/main.py", line 102, in
stream_url = account.m3u8_stream(video_link[1])
File "/media/wilhelde/Daten/WWE24/wwe.py", line 96, in m3u8_stream
return stream['hls'][0]['url'], subtitle_stream, stream['annotations']['titles']
TypeError: 'NoneType' object is not subscriptable
It's this episode: https://network.wwe.com/video/85591
and all downloads were started with this command:
python3 main.py -f -s -t
i tried python3 main.py -t https://network.wwe.com/video/85591 without success, I tried the master fork, patch-1 and patch-2, Linux and Windows as Host.
can someone tell me, what's going wrong?
Hi all,
Wondering where I am going wrong?
Cheers
Trev
C:\Users\trevo\Desktop\WWE-Network-Downloader-master>python3 main.py -t https://watch.wwe.com/episode/SmackDown-130268
C:\Users\trevo\Desktop\WWE-Network-Downloader-master\wwe.py:10: SyntaxWarning: invalid escape sequence '\d'
time_matches = re.match("\b(\d{2}):\b(\d{2}):\b(\d{2})", time)
Traceback (most recent call last):
File "C:\Users\trevo\Desktop\WWE-Network-Downloader-master\main.py", line 3, in
import wwe
File "C:\Users\trevo\Desktop\WWE-Network-Downloader-master\wwe.py", line 145
for i in chapters:
^
IndentationError: unindent does not match any outer indentation level
C:\Users\trevo\Desktop\WWE-Network-Downloader-master>
Hi I've been trying and trying with the command python3 main.py -t and then the link and I can't get nothing... I would like to know how to exactly use the downlaoder pls if anyone could make a video working and successfully downloading something.. id like to get some videos with specific times now that I get a subscription active. So wonder if anyone could help with some snapshots of the process or any video it would be really appreciated it --Thx
I've not used this for a while, i've updated to the latest version, and the latest ffmpeg but I get an incomplete input error.
it successfully exports the first 6 seconds, but that is all. It only ever shows 1 ts during the output.
Full output below - anybody have any understanding?
python3 main.py -q 4 -t https://network.wwe.com/video/83297 -f
Succesfully logged in
Got the video information
aac files finished downloading0
ts files finished downloading
Starting to write the metadata file
Starting to write the stream title
Finished writing the stream title
Finished writing the metadata file
ffmpeg version N-99360-g2f9a3215aa-tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2000-2020 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.17)
configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
libavutil 56. 59.100 / 56. 59.100
libavcodec 58.107.100 / 58.107.100
libavformat 58. 59.100 / 58. 59.100
libavdevice 58. 11.102 / 58. 11.102
libavfilter 7. 87.100 / 7. 87.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
Input #0, mpegts, from 'temp/The Undertaker.ts':
Duration: 00:00:06.00, start: 0.100000, bitrate: 1017 kb/s
Program 1
Stream #0:0[0x50]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 896x504 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
[aac @ 0x7f81fd031000] Estimating duration from bitrate, this may be inaccurate
Input #1, aac, from 'temp/The Undertaker.aac':
Metadata:
id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x00\x00\x1b\xa8
Duration: 00:00:05.92, bitrate: 5 kb/s
Stream #1:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 5 kb/s
Input #2, ffmetadata, from 'temp/The Undertaker-metafile':
Metadata:
title : The Undertaker
Duration: N/A, start: 0.000000, bitrate: N/A
Codec 0x21000 is not in the full list.
Stream #2:0: Data: unknown_codec
Metadata:
title : The Undertaker
Output #0, mp4, to 'output/The Undertaker/The Undertaker.mp4':
Metadata:
id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x00\x00\x1b\xa8
encoder : Lavf58.59.100
Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 896x504 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 5 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 180 fps=0.0 q=-1.0 Lsize= 717kB time=00:00:06.01 bitrate= 975.9kbits/s speed=1.02e+03x
video:708kB audio:4kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.762884%
Traceback (most recent call last):
File "main.py", line 224, in <module>
database.db_upd(video_link[2], video_link[1], str(video_selections[0][0]), partial_download, int(time.time()))
File "/Applications/WWE-Network-Downloader-2/db_util.py", line 39, in db_upd
self.c.execute(f"UPDATE downloads SET name = '{video_name}', quality = '{video_qual}', partial_download = '{partial}', date = '{timestamp}' WHERE id = {video_id}")
sqlite3.OperationalError: incomplete input
Hi there,
I was able to download one video, but now I keep getting errors when trying others. I do have a current paid subscription through my cable provider. Any suggestions?
Succesfully logged in
Your subscription is invalid. Quitting.
Traceback (most recent call last):
File "/home/chris/WWE-Network-Downloader-master/wwe.py", line 124, in _video_url
exit()
File "/usr/lib/python3.10/_sitebuiltins.py", line 26, in call
raise SystemExit(code)
SystemExit: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/chris/WWE-Network-Downloader-master/main.py", line 113, in
video_link = account.get_video_info(EPISODE)
File "/home/chris/WWE-Network-Downloader-master/wwe.py", line 213, in get_video_info
video_url_resp = self._video_url(api_link['entries'][0]['item']['customFields']['DiceVideoId'])
File "/home/chris/WWE-Network-Downloader-master/wwe.py", line 126, in _video_url
return video_url['playerUrlCallback'], video_url['videoId']
KeyError: 'playerUrlCallback'
Dear
Some downloads fail with the following message:
C:\tmp\WWE-Network-Downloader-master>python main.py -t https://watch.wwe.com/episode/WWE-NXT-9393
Succesfully logged in
Got the video information
aac files finished downloadingf 472
ts files finished downloadingf 472
Starting to wrtie the metadata file
Finished writing the metadata title
Writing stream title
Finished writing stream title
Traceback (most recent call last):
File "main.py", line 171, in
series_info = kodi_nfo.get_show_info(EPISODE)
File "C:\tmp\WWE-Network-Downloader-master\kodi_nfo.py", line 186, in get_show_info
i = show_json['entries'][0]['item']
KeyError: 'item'
I am getting the below error. I logged into my account on the WWE network and played the PPV fine. Not sure why it's saying your subscription is invalid. Is anyone else getting this issue?
Succesfully logged in
Your subscription is invalid. Quitting.
Traceback (most recent call last):
File "J:\Media\T.V Shows\WWE Raw\Season 8\Download\wwe.py", line 124, in _video_url
exit()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib_sitebuiltins.py", line 26, in call
raise SystemExit(code)
SystemExit: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "J:\Media\T.V Shows\WWE Raw\Season 8\Download\main.py", line 113, in
video_link = account.get_video_info(EPISODE)
File "J:\Media\T.V Shows\WWE Raw\Season 8\Download\wwe.py", line 213, in get_video_info
video_url_resp = self._video_url(api_link['entries'][0]['item']['customFields']['DiceVideoId'])
File "J:\Media\T.V Shows\WWE Raw\Season 8\Download\wwe.py", line 126, in _video_url
return video_url['playerUrlCallback'], video_url['videoId']
KeyError: 'playerUrlCallback'
im trying this on google colab but i can't figure out where to put username and password?
I still have access to the international version of the network and am getting this error on the new Mania uploads.
C:\Users[ACCOUNT]\Desktop\WWENetDown>py main.py -t https://watch.wwe.com/episode/WrestleMania-37-Night-1-161945
Succesfully logged in
Got the video information
Traceback (most recent call last):
File "main.py", line 143, in
audio_qualities.append((int(i.group_id.split('audio-')[1]), base_url[0]+"/"+
i.uri))
IndexError: list index out of range
Classic links still work fine. Any suggestions?
there is audio for about 5 second then it cuts out.. same for all videos.
Can you detect if ffmpeg is installed before downloaded all the files. I waited for around 20 minutes and finally got this:
/bin/sh: ffmpeg: command not found
.
Started getting this couple days ago and don't know if it's a Network error, my Python's error, or something else. The last few days when running the program, it'll often start out fine and then randomly stop the download with the crash error below.
The crash itself is completely random. Sometimes it wont happen at all, but, others it will happen with every file, typically during the ts file download since that's the longest part. When it crashes the timing is completely random too, some ts files may download 10 parts, others 200, 500, etc.
`C:\Users[XXX]\Desktop\WWE-Network-Downloader>py main.py -q 2 -t https://watch.w
we.com/episode/SmackDown-4670
Succesfully logged in
Got the video information
aac files finished downloading
596 ts files downloaded out of 840Traceback (most recent call last):
File "main.py", line 192, in
download.download_playlist(**kwargs)
File "C:\Users[XXX]\Desktop\WWE-Network-Downloader\download_util.py", line 11
8, in download_playlist
self.write_data(download_data.data, "{}.{}".format(title, format))
File "C:\Users[XXX]\Desktop\WWE-Network-Downloader\download_util.py", line 33
, in write_data
f = open(location,"ab+")
PermissionError: [Errno 13] Permission denied: 'C:\Users\[XXX]\Desktop\WWE-N
etwork-Downloader/inprocess/WWE SmackDown - S2002E45 - 11-07-2002.ts'
C:\Users[XXX]\Desktop\WWE-Network-Downloader>py main.py -q 2 -t https://watch.w
we.com/episode/SmackDown-4685
Succesfully logged in
Got the video information
aac files finished downloading
134 ts files downloaded out of 818Traceback (most recent call last):
File "main.py", line 192, in
download.download_playlist(**kwargs)
File "C:\Users[XXX]\Desktop\WWE-Network-Downloader\download_util.py", line 11
8, in download_playlist
self.write_data(download_data.data, "{}.{}".format(title, format))
File "C:\Users[XXX]\Desktop\WWE-Network-Downloader\download_util.py", line 33
, in write_data
f = open(location,"ab+")
PermissionError: [Errno 13] Permission denied: 'C:\Users\[XXX]\Desktop\WWE-N
etwork-Downloader/inprocess/WWE SmackDown - S2002E46 - 11-14-2002.ts'
C:\Users[XXX]\Desktop\WWE-Network-Downloader>py main.py -q 2 -t https://watch.w
we.com/episode/SmackDown-4619
Succesfully logged in
Got the video information
aac files finished downloading
416 ts files downloaded out of 840`
Hey Freyta, I'm getting this error when trying to download a link:
py main.py -t https://network.wwe.com/video/74194?seasonId=15625
Succesfully logged in
Traceback (most recent call last):
File "C:\ffmpeg\main.py", line 95, in <module>
video_link = account.get_video_info(EPISODE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ffmpeg\wwe.py", line 181, in get_video_info
stream_url = api_link['playerUrlCallback']
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
KeyError: 'playerUrlCallback'
I still have WWE Network access in Germany and can watch it on the browser, but can't seem to download. Any idea what I can do to resolve?
Is there a way to download a full year instead of downloading each episode one by one?
Or is there a way to download multiple episodes at once?
I don't know anything about programming or Python
any one have a tutorial video i want to install some of raw episodes
Is there any chance there will be a GUI for this? Because now it's absolutely not zoomer friendly app. I still haven't figured out how to use it. I installed python, and added all the files from this repository to the python folder, but nothing happens. In general, it would be great to have the simplest GUI, just a line for a link, download button, and a list of parameters with a tick box for each of them.
Me again.. ;)
I tried downloading some old stuff but it seems like that the m3u8 info is incomplete - or maybe I just do something wrong.
Command was python3 main.py -t https://network.wwe.com/video/67248?seasonId=15071
Result is here
Thanks for your assistance
I am getting this error: Error while logging in. Possibly invalid username/password
However I checked and double checked. My details are correct. What have I done wrong?
got this error
root@instance-1:/test/WWE-Network-Downloader# python3 main.py -t https://watch.wwe.com/episode/SmackDown-130268 Traceback (most recent call last): File "main.py", line 110, in <module> account.login() File "/test/WWE-Network-Downloader/wwe.py", line 45, in login token_data = self._session.post('https://dce-frontoffice.imggaming.com/api/v2/login', json=payload, headers=CONSTANTS.REALM_HEADERS).json() File "/root/.local/lib/python3.6/site-packages/requests/models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/python3.6/json/__init__.py", line 354, in loads return _default_decoder.decode(s) File "/usr/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.