YouTube network request Strange Behaviour
up vote
-1
down vote
favorite
I'm scraping YouTube videos for automatic captions and storing them locally. I use window.performance.getEntries()
to find the link to the subtitles after enabling subtitles. But when I tried to open some of the links the day after I retrieved them I got a 404
error.
Here is a now-defunct link to a YouTube video's captions that I retrieved yesterday: https://www.youtube.com/api/timedtext?sparams=asr_langs%2Ccaps%2Cv%2Cxoaf%2Cxorp%2Cexpire&hl=en&signature=B50CC4269D15CD954D6946B6342194EDF9F6D01F.AF819BEDE91E0F31C8F02A04508E49FC02B4F504&xorp=True&v=FSyAehMdpyI&asr_langs=ja%2Cko%2Cen%2Cde%2Cpt%2Cru%2Cnl%2Cfr%2Cit%2Ces&xoaf=1&key=yttt1&caps=asr&expire=1541769833&lang=en&fmt=srv3
I scraped the subtitles link from the same video and it's now changed!
https://www.youtube.com/api/timedtext?xoaf=1&expire=1541822131&signature=585C6AB59561084DC1B7F963679FF2D916257EFA.5EBAF0C3037FD561A0636CA47CF95396773DB78B&hl=en&asr_langs=ja%2Cpt%2Cde%2Cko%2Cru%2Cen%2Cnl%2Ces%2Cfr%2Cit&sparams=asr_langs%2Ccaps%2Cv%2Cxoaf%2Cxorp%2Cexpire&v=FSyAehMdpyI&caps=asr&key=yttt1&xorp=True&lang=en&fmt=srv3
Is there a permanent solution for storing these automatic captions?
api
add a comment |
up vote
-1
down vote
favorite
I'm scraping YouTube videos for automatic captions and storing them locally. I use window.performance.getEntries()
to find the link to the subtitles after enabling subtitles. But when I tried to open some of the links the day after I retrieved them I got a 404
error.
Here is a now-defunct link to a YouTube video's captions that I retrieved yesterday: https://www.youtube.com/api/timedtext?sparams=asr_langs%2Ccaps%2Cv%2Cxoaf%2Cxorp%2Cexpire&hl=en&signature=B50CC4269D15CD954D6946B6342194EDF9F6D01F.AF819BEDE91E0F31C8F02A04508E49FC02B4F504&xorp=True&v=FSyAehMdpyI&asr_langs=ja%2Cko%2Cen%2Cde%2Cpt%2Cru%2Cnl%2Cfr%2Cit%2Ces&xoaf=1&key=yttt1&caps=asr&expire=1541769833&lang=en&fmt=srv3
I scraped the subtitles link from the same video and it's now changed!
https://www.youtube.com/api/timedtext?xoaf=1&expire=1541822131&signature=585C6AB59561084DC1B7F963679FF2D916257EFA.5EBAF0C3037FD561A0636CA47CF95396773DB78B&hl=en&asr_langs=ja%2Cpt%2Cde%2Cko%2Cru%2Cen%2Cnl%2Ces%2Cfr%2Cit&sparams=asr_langs%2Ccaps%2Cv%2Cxoaf%2Cxorp%2Cexpire&v=FSyAehMdpyI&caps=asr&key=yttt1&xorp=True&lang=en&fmt=srv3
Is there a permanent solution for storing these automatic captions?
api
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I'm scraping YouTube videos for automatic captions and storing them locally. I use window.performance.getEntries()
to find the link to the subtitles after enabling subtitles. But when I tried to open some of the links the day after I retrieved them I got a 404
error.
Here is a now-defunct link to a YouTube video's captions that I retrieved yesterday: https://www.youtube.com/api/timedtext?sparams=asr_langs%2Ccaps%2Cv%2Cxoaf%2Cxorp%2Cexpire&hl=en&signature=B50CC4269D15CD954D6946B6342194EDF9F6D01F.AF819BEDE91E0F31C8F02A04508E49FC02B4F504&xorp=True&v=FSyAehMdpyI&asr_langs=ja%2Cko%2Cen%2Cde%2Cpt%2Cru%2Cnl%2Cfr%2Cit%2Ces&xoaf=1&key=yttt1&caps=asr&expire=1541769833&lang=en&fmt=srv3
I scraped the subtitles link from the same video and it's now changed!
https://www.youtube.com/api/timedtext?xoaf=1&expire=1541822131&signature=585C6AB59561084DC1B7F963679FF2D916257EFA.5EBAF0C3037FD561A0636CA47CF95396773DB78B&hl=en&asr_langs=ja%2Cpt%2Cde%2Cko%2Cru%2Cen%2Cnl%2Ces%2Cfr%2Cit&sparams=asr_langs%2Ccaps%2Cv%2Cxoaf%2Cxorp%2Cexpire&v=FSyAehMdpyI&caps=asr&key=yttt1&xorp=True&lang=en&fmt=srv3
Is there a permanent solution for storing these automatic captions?
api
I'm scraping YouTube videos for automatic captions and storing them locally. I use window.performance.getEntries()
to find the link to the subtitles after enabling subtitles. But when I tried to open some of the links the day after I retrieved them I got a 404
error.
Here is a now-defunct link to a YouTube video's captions that I retrieved yesterday: https://www.youtube.com/api/timedtext?sparams=asr_langs%2Ccaps%2Cv%2Cxoaf%2Cxorp%2Cexpire&hl=en&signature=B50CC4269D15CD954D6946B6342194EDF9F6D01F.AF819BEDE91E0F31C8F02A04508E49FC02B4F504&xorp=True&v=FSyAehMdpyI&asr_langs=ja%2Cko%2Cen%2Cde%2Cpt%2Cru%2Cnl%2Cfr%2Cit%2Ces&xoaf=1&key=yttt1&caps=asr&expire=1541769833&lang=en&fmt=srv3
I scraped the subtitles link from the same video and it's now changed!
https://www.youtube.com/api/timedtext?xoaf=1&expire=1541822131&signature=585C6AB59561084DC1B7F963679FF2D916257EFA.5EBAF0C3037FD561A0636CA47CF95396773DB78B&hl=en&asr_langs=ja%2Cpt%2Cde%2Cko%2Cru%2Cen%2Cnl%2Ces%2Cfr%2Cit&sparams=asr_langs%2Ccaps%2Cv%2Cxoaf%2Cxorp%2Cexpire&v=FSyAehMdpyI&caps=asr&key=yttt1&xorp=True&lang=en&fmt=srv3
Is there a permanent solution for storing these automatic captions?
api
api
asked Nov 9 at 21:04
st4rgut
5391718
5391718
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
OK, so all I had to do was remove the expire parameter in the URL and it worked again. eg deleted &expire=1541769833
in below link. Not sure what it's for in the first place if anyone could clarify that. Also not sure what the downvote is for, if you think somethings poorly worded say so or I won't know how to ask better questions.
https://www.youtube.com/api/timedtext?sparams=asr_langs%2Ccaps%2Cv%2Cxoaf%2Cxorp%2Cexpire&hl=en&signature=B50CC4269D15CD954D6946B6342194EDF9F6D01F.AF819BEDE91E0F31C8F02A04508E49FC02B4F504&xorp=True&v=FSyAehMdpyI&asr_langs=ja%2Cko%2Cen%2Cde%2Cpt%2Cru%2Cnl%2Cfr%2Cit%2Ces&xoaf=1&key=yttt1&caps=asr&lang=en&fmt=srv3
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
OK, so all I had to do was remove the expire parameter in the URL and it worked again. eg deleted &expire=1541769833
in below link. Not sure what it's for in the first place if anyone could clarify that. Also not sure what the downvote is for, if you think somethings poorly worded say so or I won't know how to ask better questions.
https://www.youtube.com/api/timedtext?sparams=asr_langs%2Ccaps%2Cv%2Cxoaf%2Cxorp%2Cexpire&hl=en&signature=B50CC4269D15CD954D6946B6342194EDF9F6D01F.AF819BEDE91E0F31C8F02A04508E49FC02B4F504&xorp=True&v=FSyAehMdpyI&asr_langs=ja%2Cko%2Cen%2Cde%2Cpt%2Cru%2Cnl%2Cfr%2Cit%2Ces&xoaf=1&key=yttt1&caps=asr&lang=en&fmt=srv3
add a comment |
up vote
0
down vote
OK, so all I had to do was remove the expire parameter in the URL and it worked again. eg deleted &expire=1541769833
in below link. Not sure what it's for in the first place if anyone could clarify that. Also not sure what the downvote is for, if you think somethings poorly worded say so or I won't know how to ask better questions.
https://www.youtube.com/api/timedtext?sparams=asr_langs%2Ccaps%2Cv%2Cxoaf%2Cxorp%2Cexpire&hl=en&signature=B50CC4269D15CD954D6946B6342194EDF9F6D01F.AF819BEDE91E0F31C8F02A04508E49FC02B4F504&xorp=True&v=FSyAehMdpyI&asr_langs=ja%2Cko%2Cen%2Cde%2Cpt%2Cru%2Cnl%2Cfr%2Cit%2Ces&xoaf=1&key=yttt1&caps=asr&lang=en&fmt=srv3
add a comment |
up vote
0
down vote
up vote
0
down vote
OK, so all I had to do was remove the expire parameter in the URL and it worked again. eg deleted &expire=1541769833
in below link. Not sure what it's for in the first place if anyone could clarify that. Also not sure what the downvote is for, if you think somethings poorly worded say so or I won't know how to ask better questions.
https://www.youtube.com/api/timedtext?sparams=asr_langs%2Ccaps%2Cv%2Cxoaf%2Cxorp%2Cexpire&hl=en&signature=B50CC4269D15CD954D6946B6342194EDF9F6D01F.AF819BEDE91E0F31C8F02A04508E49FC02B4F504&xorp=True&v=FSyAehMdpyI&asr_langs=ja%2Cko%2Cen%2Cde%2Cpt%2Cru%2Cnl%2Cfr%2Cit%2Ces&xoaf=1&key=yttt1&caps=asr&lang=en&fmt=srv3
OK, so all I had to do was remove the expire parameter in the URL and it worked again. eg deleted &expire=1541769833
in below link. Not sure what it's for in the first place if anyone could clarify that. Also not sure what the downvote is for, if you think somethings poorly worded say so or I won't know how to ask better questions.
https://www.youtube.com/api/timedtext?sparams=asr_langs%2Ccaps%2Cv%2Cxoaf%2Cxorp%2Cexpire&hl=en&signature=B50CC4269D15CD954D6946B6342194EDF9F6D01F.AF819BEDE91E0F31C8F02A04508E49FC02B4F504&xorp=True&v=FSyAehMdpyI&asr_langs=ja%2Cko%2Cen%2Cde%2Cpt%2Cru%2Cnl%2Cfr%2Cit%2Ces&xoaf=1&key=yttt1&caps=asr&lang=en&fmt=srv3
answered Nov 9 at 21:18
st4rgut
5391718
5391718
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53233247%2fyoutube-network-request-strange-behaviour%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown