利用Python下载:You-Get的安装及使用方法

You-Get是一个非常优秀的网站视频下载工具。使用You-Get可以很轻松的下载到网络上的视频、图片及音乐。

1.打开这个网址https://www.python.org/

下载并安装Python,注意勾选Add Python 3.5 to PATH,如图

 

安装完成如图:

 

2.按Win+R键打开运行,输入cmd,再输入python并回车执行(不显示的话请以系统管理员运行)

 

3.再按Win+R键打开运行,输入cmd,再输入命令 pip3 install you-get,输入命令you-get安装 you-get

 

4.现在可以下载了, 这里以下载爱奇艺中视频为例,打开命令窗口输入命令

you-get -o E:/1 http://www.meipai.com/media/454570774

下载好的文文件就会保存到E:/1里了。

 

ps:目前You-Get可以下载的网站有很多,比如国外的Youtube、Vimeo、Tumblr、Instagram等,国内的爱奇艺、优酷、乐视、哔哩哔哩等。

实践一下:

下载赵丽颖和吴亦凡的一首MV

 

这里我需要把网页的链接复制下来:

https://y.qq.com/n/yqq/mv/v/g0025dltuzc.html

然后在cmd窗口输入:you-get +所需下载的视频链接,

也就是输入:

you-get-o E:/1https://y.qq.com/n/yqq/mv/v/g0025dltuzc.html

 

下载完成!

深入注意清晰度的问题

如实例https://v.youku.com/v_show/id_XMzg3MjI0NTc2NA==.html?spm=a2h0k.11417342.soresults.dtitle

 

然后在cmd里面输入:you-get -i +视频链接

也就是:

you-get -i https://v.youku.com/v_show/id_XMzg3MjI0NTc2NA==.html?spm=a2h0k.11417342.soresults.dtitle

然后enter确定就可以查看视频的清晰度有哪些

显示有多种:超清,高清,标清,

 

然后我们下载想要下载的视频样式,比如下载高清的,高清是:-format=mp4sd

那么我们在cmd中输入:

you-get --format=mp4sd https://v.youku.com/v_show/id_XMzg3MjI0NTc2NA==.html?spm=a2h0k.11417342.soresults.dtitle

 

  • 原文链接:https://kuaibao.qq.com/s/20181109G009PR00?refer=cp_1026

转载于:https://www.cnblogs.com/ningjiabing/p/11246240.html

  • 3
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Remote sensing image feature selection using Python's REF-RF can be done using the following steps: 1. Install the required packages - scikit-learn, numpy, gdal, and rasterio. 2. Load the remote sensing image using gdal or rasterio and convert it into a numpy array. 3. Create a pandas dataframe with the numpy array as input and the class labels as output. 4. Split the dataset into training and testing sets. 5. Use the Recursive Feature Elimination (RFE) function from scikit-learn to select the most important features. 6. Use the Random Forest classifier to train the model on the reduced feature set. 7. Evaluate the performance of the model on the testing set. Here is some example code to get you started: ```python import numpy as np import pandas as pd from sklearn.ensemble import RandomForestClassifier from sklearn.feature_selection import RFE from sklearn.model_selection import train_test_split import rasterio # Load the remote sensing image with rasterio.open('remote_sensing_image.tif') as src: image = src.read() # Convert the image into a numpy array image = np.array(image) # Load the class labels class_labels = pd.read_csv('class_labels.csv') # Create a pandas dataframe with the image as input and class labels as output data = pd.DataFrame({'features': image.reshape((image.shape[0]*image.shape[1]), image.shape[2]), 'class': class_labels}) # Split the dataset into training and testing sets X_train, X_test, y_train, y_test = train_test_split(data['features'], data['class'], test_size=0.3) # Use RFE to select the most important features rfc = RandomForestClassifier(n_estimators=100) rfe = RFE(estimator=rfc, n_features_to_select=10, step=1) rfe.fit(X_train, y_train) # Train the model on the reduced feature set rfc.fit(rfe.transform(X_train), y_train) # Evaluate the performance of the model on the testing set accuracy = rfc.score(rfe.transform(X_test), y_test) print("Accuracy:", accuracy) ``` In the above code, we train a Random Forest classifier on the reduced feature set selected by RFE. The number of features to select can be adjusted by changing the `n_features_to_select` parameter.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值