程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

5 minutes to introduce you to the super easy-to-use library you get in Python

編輯:Python

One . you-get summary

you-get Is a small command line utility , For from Web Download media content ( video , Audio , Images ).

Official website :https://you-get.org/

Source code address :https://github.com/soimort/you-get

Command line installation :pip3 install you-get ( It needs to be followed first python Environmental Science )

to update :pip install --upgrade you-get

Two . you-get main parameter

Options and descriptions
-i: Display resource information , For example, format 、 clarity 、 Size, etc ( Commonly used );
-c: Use cookie, load cookies.txt perhaps cookies.sqlite. That is, downloading member resources requires member information ( Commonly used );
-o: Set the output folder , That is, save the path , If not specified , Save in the current working directory ( Commonly used );
-u: Specify which to download or view url, Sometimes you can omit -u Add directly url;
-O: Set file name , You can use the default file name
-f: Force overwrite of existing files
-l: Download the whole list first
-P: Use password ( If you need a password to access the video )
-t: Set timeout , The unit is seconds

3、 ... and . you-get Command usage

# The simplest Download 
you-get ' Video link '
# # List video information , You can see the video information provided by this web page 
you-get -i ' Video link '
# Download video of specified quality , Domestic websites generally default to the highest definition , But there are more high-definition ones abroad 
you-get --itag=127 ' Video link ' 
# Set up http agent 
you-get -x 127.0.0.1:8118 ' Video link '

Four . python The code uses

python3 Simple use in code :

# -*- encoding: utf-8 -*-
# You can get the downloaders of various websites 
from you_get.extractor import download_urls
url_list = ['https://www.bilibili.com/video/BV1sf4y1x7MS?spm_id_from=333.999.0.0&vd_source=2b9d1ec775e1a5ff6537f2f5ec814470']
resp = download_urls(urls=url_list, title='myvideo', ext='mp4', total_size=0)

5、 ... and . attach : Up to now you-get Websites that support downloading

SiteURLVideos?Images?Audios?YouTubehttps://www.youtube.com/*Twitterhttps://twitter.com/**VKhttp://vk.com/**Vinehttps://vine.co/*Vimeohttps://vimeo.com/*Veohhttp://www.veoh.com/*Tumblrhttps://www.tumblr.com/***TEDhttp://www.ted.com/*SoundCloudhttps://soundcloud.com/*SHOWROOMhttps://www.showroom-live.com/*Pinteresthttps://www.pinterest.com/*MTV81http://www.mtv81.com/*Mixcloudhttps://www.mixcloud.com/*Metacafehttp://www.metacafe.com/*Magistohttp://www.magisto.com/*Khan Academyhttps://www.khanacademy.org/*Internet Archivehttps://archive.org/*Instagramhttps://instagram.com/**InfoQhttp://www.infoq.com/presentations/*Imgurhttp://imgur.com/*Heavy Music Archivehttp://www.heavy-music.ru/*Freesoundhttp://www.freesound.org/*Flickrhttps://www.flickr.com/**FC2 Videohttp://video.fc2.com/*Facebookhttps://www.facebook.com/*eHowhttp://www.ehow.com/*Dailymotionhttp://www.dailymotion.com/*Coubhttp://coub.com/*CBShttp://www.cbs.com/*Bandcamphttp://bandcamp.com/*AliveThaihttp://alive.in.th/*interest.mehttp://ch.interest.me/tvn*755
ナナゴーゴー
http://7gogo.jp/**niconico
ニコニコ Animation
http://www.nicovideo.jp/*163
Netease video
NetEase cloud music
http://v.163.com/
http://music.163.com/**56 network http://www.56.com/*AcFunhttp://www.acfun.cn/*Baidu
Baidu post bar
http://tieba.baidu.com/** Popcorn net http://www.baomihua.com/*bilibili
Bili, Bili
http://www.bilibili.com/*** douban http://www.douban.com/** Fighting fish http://www.douyutv.com/* Phoenix video http://v.ifeng.com/* Popular network http://www.fun.tv/*iQIYI
Iqiyi http://www.iqiyi.com/* Exciting net http://www.joy.cn/* cool 6 network http://www.ku6.com/* Cool dog music http://www.kugou.com/* Cool music http://www.kuwo.cn/* Le miniaturization: http://www.le.com/* litchi FMhttp://www.lizhi.fm/* Lazy people listen to books http://www.lrts.me/* Second beat http://www.miaopai.com/*MioMio Barrage net http://www.miomio.tv/*MissEvan
Cat's ear FMhttp://www.missevan.com/* Ruffian https://www.pixnet.net/*PPTV Cohesion http://www.pptv.com/* Qilu. Com http://v.iqilu.com/*QQ
Tencent video http://v.qq.com/* Penguin live http://live.qq.com/*Sina
Sina video
Micro blog second video http://video.sina.com.cn/
http://video.weibo.com/*Sohu
Sohu videos http://tv.sohu.com/*Tudou
potatoes
http://www.tudou.com/* Sunshine TV http://www.isuntv.com/*Youku
youku
http://www.youku.com/* war flag TVhttp://www.zhanqi.tv/lives* Cctv.com http://www.cntv.cn/*Naver
네이버http://tvcast.naver.com/* Mango. TVhttp://www.mgtv.com/* Fire cats TVhttp://www.huomao.com/* Sunshine broadband network http://www.365yg.com/* Watermelon Video https://www.ixigua.com/* New film studio https://www.xinpianchang.com/* Well quickly https://www.kuaishou.com/** Tiktok https://www.douyin.com/*TikTokhttps://www.tiktok.com/* Chinese sports (TV)http://v.zhibo.tv/http://video.zhibo.tv/* You know https://www.zhihu.com/*

It's like you-get said , The infringement has nothing to do with me , How to use it is your own business .

If you find this tool useful , It can be collected


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved