Python 下载视频
我想获得一份位于此处的视频副本: 我使用了inspect element,视频应位于: 但是每次我去这个链接我都会得到一个404错误 我本来打算用一个带有urlretrieve的小python脚本来下载这个视频,但我似乎找不到要从中检索的链接Python 下载视频,python,video,web-scraping,Python,Video,Web Scraping,我想获得一份位于此处的视频副本: 我使用了inspect element,视频应位于: 但是每次我去这个链接我都会得到一个404错误 我本来打算用一个带有urlretrieve的小python脚本来下载这个视频,但我似乎找不到要从中检索的链接 任何关于如何查找视频的帮助都将是一次美妙的学习体验。我是如何使用Chrome找到真正的URL的? 加载后,打开开发者工具: 根据具体情况选择网络选项卡选项 单击播放(在视频上)并查看加载的资源。然后选择“有趣的”一个并查看其加载的URL: 最后,
任何关于如何查找视频的帮助都将是一次美妙的学习体验。我是如何使用Chrome找到真正的URL的?
在源代码内部,您可以在
检查浏览器网络面板中看到。
config = {
"key": "#$a13c066f3e6146a6195",
"clip": {
"scaling": "orig",
"autoPlay": true,
"urlResolvers": "cluster",
"bufferLength": 6,
"autoBuffering": true,
"url": "/2009/TOYS/TOYS2009_2.flv"
},
"contextMenu": [{
"About Sirecam ...": "function()"
}],
"canvas": {
"backgroundImage": "url(images/sirecam/player_bg_sales.png)",
"backgroundColor": "#ffffff"
},
"plugins": {
"cluster": {
"debug": true,
"url": "images/flowplayer/flowplayer.cluster-3.1.1.swf",
"hosts": ["http://cdn.sirecam.com", "http://d103cgplnnab87.cloudfront.net", "http://s3.sirecam.com", "http://vdo.sirecam.com"],
"connectTimeout": 20000,
"failureExpiry": 20000
},
"controls": {
"borderRadius": 0,
"timeColor": "rgba(253, 185, 49, 1)",
"slowForward": true,
"bufferGradient": "none",
"backgroundColor": "rgba(120, 120, 120, 1)",
"volumeSliderGradient": "none",
"slowBackward": false,
"timeBorderRadius": 20,
"time": true,
"progressGradient": "none",
"height": 22,
"volumeColor": "rgba(0, 51, 153, 1)",
"tooltips": {
"marginBottom": 5,
"scrubber": true,
"volume": true,
"buttons": false
},
"opacity": 1,
"fastBackward": false,
"timeFontSize": 12,
"border": "0px",
"bufferColor": "rgba(0, 51, 153, 1)",
"volumeSliderColor": "rgba(253, 185, 49, 1)",
"buttonColor": "rgba(209, 209, 209, 1)",
"mute": false,
"autoHide": {
"enabled": false,
"hideDelay": 500,
"hideStyle": "move",
"mouseOutDelay": 500,
"hideDuration": 400,
"fullscreenOnly": true
},
"backgroundGradient": [0.5, 0.2, 0],
"width": "100pct",
"display": "block",
"sliderBorder": "1px solid rgba(128, 128, 128, 0.7)",
"buttonOverColor": "#ffffff",
"fullscreen": true,
"timeBgColor": "rgba(0, 0, 0, 0.55)",
"scrubberBarHeightRatio": 0.2,
"bottom": 0,
"stop": false,
"zIndex": 1,
"sliderColor": "#000000",
"scrubberHeightRatio": 0.6,
"tooltipTextColor": "rgba(51, 51, 51, 1)",
"spacing": {
"time": 6,
"volume": 8,
"all": 2
},
"sliderGradient": "none",
"timeBgHeightRatio": 0.8,
"volumeSliderHeightRatio": 0.6,
"timeSeparator": " ",
"name": "controls",
"volumeBarHeightRatio": 0.2,
"left": "50pct",
"tooltipColor": "rgba(253, 185, 49, 1)",
"playlist": false,
"durationColor": "rgba(255, 255, 255, 1)",
"play": true,
"fastForward": true,
"progressColor": "rgba(253, 185, 49, 1)",
"timeBorder": "0px solid rgba(0, 0, 0, 0.3)",
"volume": true,
"scrubber": true,
"builtIn": false,
"volumeBorder": "1px solid rgba(128, 128, 128, 0.7)",
"margins": [2, 6, 2, 12]
}
},
"playerId": "player",
"playlist": [{
"scaling": "orig",
"autoPlay": true,
"urlResolvers": "cluster",
"bufferLength": 6,
"autoBuffering": true,
"url": "/2009/TOYS/TOYS2009_2.flv"
}]
}
"hosts": ["http://cdn.sirecam.com", "http://d103cgplnnab87.cloudfront.net", "http://s3.sirecam.com", "http://vdo.sirecam.com"],