正文
valid URL
is
required to
make
a
request
.
function
:
delete
:
Sends
a
DELETE
request
.
get
:
Sends
a
GET
request
.
head
:
Sends
a
HEAD
request
.
options
:
Sends
a
OPTIONS
request
.
patch
:
Sends
a
PATCH
request
.
post
:
Sends
a
POST
request
.
put
:
Sends
a
PUT
request
.
request
:
Constructs
and
sends
a
:
class
:
`
Request
<
Request
>
`.
session
:
Returns
a
:
class
:
`
Session
`
for
context
-
management
.
Python 玩转网易云音乐
pip install ncmbot
import
ncmbot
#登录
bot
=
ncmbot
.
login
(
phone
=
'xxx'
,
password
=
'yyy'
)
bot
.
content
# bot.json()
#获取用户歌单
ncmbot
.
user_play_list
(
uid
=
'36554272'
)
下载视频字幕
pip install getsub
Python 财经数据接口包
pip install tushare
import
tushare
as
ts
#一次性获取最近一个日交易日所有股票的交易数据
ts
.
get_today_all
()
代码,名称,涨跌幅,现价,开盘价,最高价,最低价,最日收盘价,成交量,换手率
code
name changepercent trade open
high low
settlement
\
0
002738
中矿资源
10.023
19.32
19.32
19.32
19.32
17.56
1
300410
正业科技
10.022
25.03
25.03
25.03
25.03
22.75
2
002736
国信证券
10.013
16.37
16.37
16.37
16.37
14.88
3
300412
迦南科技
10.010
31.54
31.54
31.54
31.54
28.67
4
300411
金盾股份
10.007
29.68
29.68
29.68
29.68
26.98
5
603636
南威软件
10.006
38.15
38.15
38.15
38.15
34.68
6
002664
信质电机
10.004
30.68
29.00
30.68
28.30
27.89
7
300367
东方网力
10.004
86.76
78.00
86.76
77.87
78.87
8
601299
中国北车
10.000
11.44
11.44
11.44
11.29
10.40
9
601880
大连港
10.000
5.72
5.34
5.72
5.22
5.20
10
000856
冀东装备
10.000
8.91
8.18
8.91
8.18
8.10
开源漏洞靶场
# 安装pip
curl
-
s
https
://
bootstrap
.
pypa
.
io
/
get
-
pip
.
py