专栏名称: Python开发者
人生苦短,我用 Python。伯乐在线旗下账号「Python开发者」分享 Python 相关的技术文章、工具资源、精选课程、热点资讯等。
目录
相关文章推荐
Python开发者  ·  年薪96w!又一新兴岗位崛起!这才是开发人未 ... ·  6 小时前  
Python开发者  ·  三大云厂同时瘫了?Cursor、ChatGP ... ·  21 小时前  
Python爱好者社区  ·  太炸裂了!亚马逊云来了 ·  2 天前  
Python爱好者社区  ·  全球首个满级QQ正式诞生!满级后长这样 ·  2 天前  
51好读  ›  专栏  ›  Python开发者

那些有趣/用的 Python 库

Python开发者  · 公众号  · Python  · 2017-08-07 19:52

正文

请到「今天看啥」查看全文


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







请到「今天看啥」查看全文