Python 服务器可以用来做什么么有趣的事情

Python 可以用来做什么有趣的事情?-zach14c的回答-悟空问答
悟空问答App全新上线 看热点讨论 问明星专家
知道Python可以用来写爬虫,还能做哪些有意思的事呢?
Python 可以用来做什么有趣的事情?
raspberry pi io control(^_^)v
Github上有一些爬虫、数据分析和金融分析框架项目,整理如下:eve-demo - 一个基于EVE的具有完整功能的REST Web APIscrapy_cn - Scrapy爬虫脚本的demodjango-tornado-demo - 将django和tornado用在一起的Demo appPinyin_Demo - 一个简单的拼音输入法demodocker-compose-demo - 用docker-compose来创建一个Web服务连接一个负载均衡器和Redis数据库的demo.pyramid_auth_demo - 用URL Dispatch来演示Pyramid授权功能的demo.eldarion-ajax-demo - 一个bootstrap-ajax的小demo.DjangoRpyDemo - A very simple django site for demonstrating the use of rpy for plottingjiebademo - a demo site for jieba,结巴分词demo.classfication_demo - 用logistic回归,SVM,神经网络实现分类算法的demoQt-Python-Binding-Examples - Lots of simple and Pythonic PySide demos.一些关于PySide的小demodemo-allauth-bootstrap - Demonstration of Django-AllAuth with Twitter Bootstrapdjango-c10k-demo - 10 000 concurrent real-time connections to Djangominimal-docker-python-setup - A demo of a minimal Nginx-uWSGI-Flask-Redis stack using Docker in less than 42 mb.wut4lunch_demos - Demos to accompany an article comparing the Flask, Django, and Pyramid web frameworks.DjanMon - Demo showing how to use MongoDB with PyMongo from a Django projectStock - 终端实时获取股票价格,实时查询股票价格,默认查询了沪指、深指。需要安装requests库,通过调用新浪股票API,实时查询股票价格,支持查询多支股票,通过threading多线程同时查询结果tushare - 是实现对股票/期货等金融数据从数据采集、清洗加工 到 数据存储过程的工具,满足金融量化分析师和学习数据分析的人在数据获取方面的需求,它的特点是数据覆盖范围广,接口调用简单,响应快速chinastock - 中国股票行情数据分析。能够获得股票部分金融数据、日线,周线,60分钟数据线,月线,30分钟数据及历史数据。该项目依赖于httplib2,和beautifulsoup。python开发环境是2.7.5Stockholm - 一个股票数据(沪深)爬虫和选股策略测试框架,数据基于雅虎YQL和新浪财经。根据选定的日期范围抓取所有沪深两市股票的行情数据。根据指定的选股策略和指定的日期进行选股测试。计算选股测试实际结果。支持使用表达式定义选股策略和多线程处理。easyquotation - 实时获取新浪 / Leverfun 的免费股票以及 level2 十档行情 / 集思路的分级基金行情。获取新浪的免费实时行情、腾讯财经的免费实时行情、leverfun 的免费 Level 2 十档行情、集思路的分级基金数据。开发环境 : Ubuntu 15.10 / Python 3.5。get_recommend_stock - 抓取同花顺level2广告页股票推荐数据,并发送邮件给指定邮箱。涉及简单的jsonp解析以及如何使用python发送邮件的操作stocks - 每天从网上抓取股票数据并保存到本地以供分析,包括A股、中小板、创业板股票。上班时候可以偷偷看。。。mystock - linux查看实时查看股票信息(国内股票),再也不用偷偷摸摸上班看手机啦。。
1 数据分析 Data Analysis使用Python的Pandas、Matplotlib和其它的库可视化数据集。2 机器人利用Python编程控制硬件,如树莓派3 网站开发使用Flask或Django框加开发网站4 游戏开发使用Python的PyGame库开发游戏,可以多种平台运行5 GUIs 图形界面开发使用Tkinter, PyQt, Kivy创建图形用户接口
8个回答被折叠
正在为您加载更多Python可以被用来做哪些神奇好玩的事情
如果你在周末、有WIFI的房间里不知道做什么,不如学下Python吧。有了它,你可以什么都不需要!
基础需求篇:温饱与空虚
一位匿名知乎网友爆料用Python写了自动化交易程序,2年躺着赚了200万!相当于普通程序员10年的工资,此刻的心情...你懂的!
图1 大神的知乎截图
不过,这位大侠的真实身份也被网友找出了,真是人红了想低调都不行。
程序员式浪漫
程序员不轻易展示浪漫,一旦浪漫起来也是非常帅的。他们不屑于送情书,也无意送玫瑰花,他们用自己的语言表达对自己另一半的爱,这种语言叫作“代码”。
汉语:如果我们之间有一千零一步,那么我就来走那一千零一步,你不要后退就好了;
如果上面这段“代码”不过瘾的话,我们接着欣赏。
(⊙o⊙)…是不是很高深?这句话的汉语解释是“你的一句明天见,偷走了我整夜的睡眠”。
当然,具备了Money和浪漫,也未必能迎娶白富美,毕竟男女比例失衡的现实摆在这里,但不必担心,Python也为宅男准备了锦囊。
“当硬盘没有空间的时候,当身体无力不能下手;我还是不能和你分手,不能和你分手,你的存在是我治愈空虚的粮酒”,这首《至Python》,扎心了,歌词的原意下图正解!
图2 宅男的知乎截图
上述好玩的事情,远远不是Python的全部,接下来给大家介绍几个高大上的。
品位生活篇:品质与情调
每篇清晨,当我们对着镜子梳妆打扮时,镜子上显示现在的时间、今天的天气,或者一句奋斗的名言警句,会不会有种温馨而又不失斗志的生活感呢?
图3 网友的魔镜
这个魔镜是由树莓派打造的,树莓派是一款主要基于Linux的单机电脑,可以连接电视、显示器、键盘鼠标等设备,还可以玩游戏和播放视频。Python是树莓派的主要编程语言。
11月份的前几天,最悲伤的是快递小哥,因为快递量逐天下降,直到双十一下午开始迅速反弹。剁手党们决定将积攒了半个月甚至1个月的物品,在11.11当天全部买入,那么怎样才能买到最实惠的商品呢?毫无疑问,用Python呀!
确定商品类别后,用Python爬出各大购物网站的商品销量、购买数以及折扣信息,就可以及时发现性价比高的了。
人工智能世界名画
2015年,德国科学家用深度学习算法让人工智能系统学习梵高、莫奈等世界著名画家的画风绘制新的“人工智能世界名画”,先让我们来欣赏名画风采。这效果是不是让你很动心?
图4 人工智能世界名画之建筑效果
除了建筑自然风景外,我们也可以将自己的照片,转成世界名画风格,也是很酷的吆。
图5 人工智能世界名画之人体效果
这个程序代码是可以下载的,有基于Python深度学习库DeepPy的实现版本,有基于Python深度学习库TensorFlow的实现版本,有基于Python深度学习库Caffe的实现版本,还有基于Python深度学习库Keras的实现版本(工具下载链接,可微信扫描文末二维码领取)。
人生苦短,我用Python
近日,全球知名的机器学习竞赛平台Kaggle的《2017数据科学与机器学习行业现状调查》显示,Python已成为数据科学家最常用的语言,也是最常用的数据分析工具。恰恰就在几个月前,IEEE发布了2017年编程语言排行榜,同样,Python高居首位。
Python的火热,刺激了市场的需求,在国内某知名互联网招聘网站上,Python开发工程师的年薪普遍在25万-50万之间,岗位数量多达数万。
图6 某招聘网站Python开发岗位
看了这么多好玩的应用,了解了Python的前景后,要跟大家一起聊聊如何零基础入门Python了。搜集了知乎上数十位Python话题优秀回答者的答案,整理如下:
(1)初学者可以多学习The Python Tutorial(英文不好的话,可以学习官方中文文档:Python入门指南),熟练掌握基本的语法;
(2)语法熟悉后,多做一些小项目,尤其是有趣好玩的小例子,以持续维持自己的学习动力;
(3)多了解Python的库,网上有很多关于库的介绍,多搜索多了解;
(4)善于跟伙伴们一起学习,向前辈们学习,往往会事半功倍。
责任编辑:
声明:本文由入驻搜狐号的作者撰写,除搜狐官方账号外,观点仅代表作者本人,不代表搜狐立场。
今日搜狐热点那些有趣/用的 Python 库 - Python - 伯乐在线
& 那些有趣/用的 Python 库
pip install pillow
from PIL import Image
import numpy as np
a = np.array(Image.open('test.jpg'))
b = [255,255,255] - a
im = Image.fromarray(b.astype('uint8'))
im.save('new.jpg')
pip install pillowfrom PIL import Imageimport numpy as np&a = np.array(Image.open('test.jpg'))b = [255,255,255] - aim = Image.fromarray(b.astype('uint8'))im.save('new.jpg')
pip install youtube-dl #直接安装youtube-dl
pip install -U youtube-dl #安装youtube-dl并更新
youtube-dl "/watch?v=-wNyEUrxzFU"
pip install youtube-dl #直接安装youtube-dlpip install -U youtube-dl #安装youtube-dl并更新youtube-dl "/watch?v=-wNyEUrxzFU"
pip install pdir2
&&& import pdir,requests
&&& pdir(requests)
module attribute:
__cached__, __file__, __loader__, __name__, __package__, __path__, __spec__
__author__, __build__, __builtins__, __copyright__, __license__, __title__,
__version__, _internal_utils, adapters, api, auth, certs, codes, compat, cookies
, exceptions, hooks, logging, models, packages, pyopenssl, sessions, status_code
s, structures, utils, warnings
special attribute:
NullHandler: This handler does nothing. It's intended to be used to avoid th
PreparedRequest: The fully mutable :class:`PreparedRequest &PreparedRequest&
Request: A user-created :class:`Request &Request&` object.
Response: The :class:`Response &Response&` object, which contains a
Session: A Requests session.
exception:
ConnectTimeout: The request timed out while trying to connect to the remote
ConnectionError: A Connection error occurred.
DependencyWarning: Warned when an attempt is made to import a module with mi
ssing optional
FileModeWarning: A file was opened in text mode, but Requests determined its
binary length.
HTTPError: An HTTP error occurred.
ReadTimeout: The server did not send any data in the allotted amount of time
RequestException: There was an ambiguous exception that occurred while handl
Timeout: The request timed out.
TooManyRedirects: Too many redirects.
URLRequired: A valid URL is required to make a request.
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.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
pip install pdir2&&& import pdir,requests&&& pdir(requests)module attribute:&&&&__cached__, __file__, __loader__, __name__, __package__, __path__, __spec__other:&&&&__author__, __build__, __builtins__, __copyright__, __license__, __title__,__version__, _internal_utils, adapters, api, auth, certs, codes, compat, cookies, exceptions, hooks, logging, models, packages, pyopenssl, sessions, status_codes, structures, utils, warningsspecial attribute:&&&&__doc__class:&&&&NullHandler: This handler does nothing. It's intended to be used to avoid the&&&&PreparedRequest: The fully mutable :class:`PreparedRequest &PreparedRequest&` object,&&&&Request: A user-created :class:`Request &Request&` object.&&&&Response: The :class:`Response &Response&` object, which contains a&&&&Session: A Requests session.exception:&&&&ConnectTimeout: The request timed out while trying to connect to the remoteserver.&&&&ConnectionError: A Connection error occurred.&&&&DependencyWarning: Warned when an attempt is made to import a module with missing optional&&&&FileModeWarning: A file was opened in text mode, but Requests determined its binary length.&&&&HTTPError: An HTTP error occurred.&&&&ReadTimeout: The server did not send any data in the allotted amount of time.&&&&RequestException: There was an ambiguous exception that occurred while handling your&&&&Timeout: The request timed out.&&&&TooManyRedirects: Too many redirects.&&&&URLRequired: A 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.
pip install ncmbot
import ncmbot
bot = ncmbot.login(phone='xxx', password='yyy')
bot.content # bot.json()
#获取用户歌单
ncmbot.user_play_list(uid='')
pip install ncmbotimport ncmbot#登录bot = ncmbot.login(phone='xxx', password='yyy')bot.content # bot.json()#获取用户歌单ncmbot.user_play_list(uid='')
pip install getsub
pip install getsub
pip install tushare
import tushare as ts
#一次性获取最近一个日交易日所有股票的交易数据
ts.get_today_all()
代码,名称,涨跌幅,现价,开盘价,最高价,最低价,最日收盘价,成交量,换手率
changepercent
settlement \
123456789101112131415161718
pip install tushareimport 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
curl -s https://bootstrap.pypa.io/get-pip.py | python3
# 安装docker
apt-get update && apt-get install docker.io
# 启动docker服务
service docker start
# 安装compose
pip install docker-compose
# 拉取项目
git clone :phith0n/vulhub.git
# 进入某一个漏洞/环境的目录
cd nginx_php5_mysql
# 自动化编译环境
docker-compose build
# 启动整个环境
docker-compose up -d
#测试完成后,删除整个环境
docker-compose down
12345678910111213141516171819202122232425
# 安装pipcurl -s https://bootstrap.pypa.io/get-pip.py | python3&# 安装dockerapt-get update && apt-get install docker.io&# 启动docker服务service docker start&# 安装composepip install docker-compose # 拉取项目git clone git@github.com:phith0n/vulhub.gitcd vulhub&# 进入某一个漏洞/环境的目录cd nginx_php5_mysql&# 自动化编译环境docker-compose build&# 启动整个环境docker-compose up -d#测试完成后,删除整个环境docker-compose down
pip install -r requirements.txt 安装依赖
python manage.py build_cache 获取离线数据,建立本地缓存
#项目自带了一个终端中的查询工具作为例子,运行: python manage.py cli
&&& from beijing_bus import BeijingBus
&&& lines = BeijingBus.get_all_lines()
[&Line: 运通122(农业展览馆-华纺易城公交场站)&, &Line: 运通101(广顺南大街北口-蓝龙家园)&, ...]
&&& lines = BeijingBus.search_lines('847')
[&Line: 847(马甸桥西-雷庄村)&, &Line: 847(雷庄村-马甸桥西)&]
&&& line = lines[0]
&&& print line.id, line.name
541 847(马甸桥西-雷庄村)
&&& line.stations
[&Station 马甸桥西&, &Station 马甸桥东&, &Station 安华桥西&, ...]
&&& station = line.stations[0]
&&& print station.name, station.lat, station.lon
马甸桥西 39..372921
&&& line.get_realtime_data(1) # 参数为站点的序号,从1开始
'id': 公交车id,
'lat': 公交车的位置,
'lon': 公交车位置,
'next_station_name': 下一站的名字,
'next_station_num': 下一站的序号,
'next_station_distance': 离下一站的距离,
'next_station_arriving_time': 预计到达下一站的时间,
'station_distance': 离本站的距离,
'station_arriving_time': 预计到达本站的时间,
123456789101112131415161718192021222324252627282930313233
pip install -r requirements.txt 安装依赖python manage.py build_cache 获取离线数据,建立本地缓存#项目自带了一个终端中的查询工具作为例子,运行: python manage.py cli&&& from beijing_bus import BeijingBus&&& lines = BeijingBus.get_all_lines()&&& lines[&Line: 运通122(农业展览馆-华纺易城公交场站)&, &Line: 运通101(广顺南大街北口-蓝龙家园)&, ...]&&& lines = BeijingBus.search_lines('847')&&& lines[&Line: 847(马甸桥西-雷庄村)&, &Line: 847(雷庄村-马甸桥西)&]&&& line = lines[0]&&& print line.id, line.name541 847(马甸桥西-雷庄村)&&& line.stations[&Station 马甸桥西&, &Station 马甸桥东&, &Station 安华桥西&, ...]&&& station = line.stations[0]&&& print station.name, station.lat, station.lon马甸桥西 39.967721 116.372921&&& line.get_realtime_data(1) # 参数为站点的序号,从1开始[&&&&{&&&&&&&&'id': 公交车id,&&&&&&&&'lat': 公交车的位置,&&&&&&&&'lon': 公交车位置,&&&&&&&&'next_station_name': 下一站的名字,&&&&&&&&'next_station_num': 下一站的序号,&&&&&&&&'next_station_distance': 离下一站的距离,&&&&&&&&'next_station_arriving_time': 预计到达下一站的时间,&&&&&&&&'station_distance': 离本站的距离,&&&&&&&&'station_arriving_time': 预计到达本站的时间,&&&&},&&&&...]
git clone /grangier/python-goose.git
cd python-goose
pip install -r requirements.txt
python setup.py install
&&& from goose import Goose
&&& from goose.text import StopWordsChinese
= 'http://www.bbc.co.uk/zhongwen/simp/chinese_news/210_hongkong_politics.shtml'
&&& g = Goose({'stopwords_class': StopWordsChinese})
&&& article = g.extract(url=url)
&&& print article.cleaned_text[:150]
香港行政长官梁振英在各方压力下就其大宅的违章建筑(僭建)问题到立法会接受质询,并向香港民众道歉。
梁振英在星期二(12月10日)的答问大会开始之际在其演说中道歉,但强调他在违章建筑问题上没有隐瞒的意图和动机。
一些亲北京阵营议员欢迎梁振英道歉,且认为应能获得香港民众接受,但这些议员也质问梁振英有
12345678910111213141516
git clone https://github.com/grangier/python-goose.gitcd python-goosepip install -r requirements.txtpython setup.py install&&&& from goose import Goose&&& from goose.text import StopWordsChinese&&& url&&= 'http://www.bbc.co.uk/zhongwen/simp/chinese_news/210_hongkong_politics.shtml'&&& g = Goose({'stopwords_class': StopWordsChinese})&&& article = g.extract(url=url)&&& print article.cleaned_text[:150]香港行政长官梁振英在各方压力下就其大宅的违章建筑(僭建)问题到立法会接受质询,并向香港民众道歉。&梁振英在星期二(12月10日)的答问大会开始之际在其演说中道歉,但强调他在违章建筑问题上没有隐瞒的意图和动机。&一些亲北京阵营议员欢迎梁振英道歉,且认为应能获得香港民众接受,但这些议员也质问梁振英有
-v 10 -l Q
pip&&install&&MyQRmyqr https://github.commyqr https://github.com -v 10 -l Q
pip install fake-useragent
from fake_useragent import UserAgent
ua = UserAgent()
# Mozilla/5.0 (W U; MSIE 9.0; Windows NT 9.0; en-US);
# Mozilla/5.0 ( MSIE 10.0; M Intel Mac OS X 10_7_3; Trident/6.0)'
ua['Internet Explorer']
# Mozilla/5.0 ( MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB7.4; InfoPath.2; SV1; .NET CLR 3.3.69573; WOW64; en-US)
# Opera/9.80 (X11; Linux i686; U; ru) Presto/2.8.131 Version/11.11
# Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2'
1234567891011121314
pip install fake-useragentfrom fake_useragent import UserAgentua = UserAgent()&ua.ie# Mozilla/5.0 (W U; MSIE 9.0; Windows NT 9.0; en-US);ua.msie# Mozilla/5.0 ( MSIE 10.0; M Intel Mac OS X 10_7_3; Trident/6.0)'ua['Internet Explorer']# Mozilla/5.0 ( MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB7.4; InfoPath.2; SV1; .NET CLR 3.3.69573; WOW64; en-US)ua.opera# Opera/9.80 (X11; Linux i686; U; ru) Presto/2.8.131 Version/11.11ua.chrome# Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2'
pip install httpstat
httpstat httpbin.org/get
pip install httpstathttpstat httpbin.org/get
pip install sh
from sh import ifconfig
print ifconfig("eth0")
pip install shfrom sh import ifconfigprint ifconfig("eth0")
pip install -U textblob#英文文本的情感分析
pip install snownlp#中文文本的情感分析
from snownlp import SnowNLP
text = "I am happy today. I feel sad today."
from textblob import TextBlob
blob = TextBlob(text)
TextBlob("I am happy today. I feel sad today.")
blob.sentiment
Sentiment(polarity=0.00002, subjectivity=1.0)
s = SnowNLP(u'这个东西真心很赞')
# [u'这个', u'东西', u'真心',
u'很', u'赞']
# [(u'这个', u'r'), (u'东西', u'n'),
(u'真心', u'd'), (u'很', u'd'),
(u'赞', u'Vg')]
s.sentiments
# 0.5832 positive的概率
# [u'zhe', u'ge', u'dong', u'xi',
u'zhen', u'xin', u'hen', u'zan']
s = SnowNLP(u'「繁體字」「繁體中文」的叫法在臺灣亦很常見。')
# u'「繁体字」「繁体中文」的叫法
# 在台湾亦很常见。'
1234567891011121314151617181920212223242526272829
pip install -U textblob#英文文本的情感分析pip install snownlp#中文文本的情感分析from snownlp import SnowNLPtext = "I am happy today. I feel sad today."from textblob import TextBlobblob = TextBlob(text)TextBlob("I am happy today. I feel sad today.")blob.sentimentSentiment(polarity=0.00002, subjectivity=1.0)&&s = SnowNLP(u'这个东西真心很赞')&s.words&&&&&&&& # [u'这个', u'东西', u'真心',&&&&&&&&&&&&&&&&#&&u'很', u'赞']&s.tags&&&&&&&&&&# [(u'这个', u'r'), (u'东西', u'n'),&&&&&&&&&&&&&&&&#&&(u'真心', u'd'), (u'很', u'd'),&&&&&&&&&&&&&&&&#&&(u'赞', u'Vg')]&s.sentiments&&&&# 0.5832 positive的概率&s.pinyin&&&&&&&&# [u'zhe', u'ge', u'dong', u'xi',&&&&&&&&&&&&&&&&#&&u'zhen', u'xin', u'hen', u'zan']&s = SnowNLP(u'「繁體字」「繁體中文」的叫法在臺灣亦很常見。')&s.han&&&&&&&&&& # u'「繁体字」「繁体中文」的叫法&&&&&&&&&&&&&&&&# 在台湾亦很常见。'
pip install -U getproxy
? ~ getproxy --help
Usage: getproxy [OPTIONS]
--in-proxy TEXT Input proxy file
--out-proxy TEXT Output proxy file
--help Show this message and exit.
pip install -U getproxy? ~ getproxy --helpUsage: getproxy [OPTIONS]&Options:--in-proxy TEXT Input proxy file--out-proxy TEXT Output proxy file--help Show this message and exit.
--in-proxy 可选参数,待验证的 proxies 列表文件
--out-proxy 可选参数,输出已验证的 proxies 列表文件,如果为空,则直接输出到终端
--in-proxy 文件格式和 --out-proxy 文件格式一致
pip install git+git:///lzjun567/zhihu-api --upgrade
from zhihu import Zhihu
zhihu = Zhihu()
zhihu.user(user_slug="xiaoxiaodouzi")
{'avatar_url_template': '/v2-ca67febde704c66249ec_{size}.jpg',
'badge': [],
'name': '我是小号',
'headline': '程序员',
'gender': -1,
'user_type': 'people',
'is_advertiser': False,
'avatar_url': '/v2-ca67febde704c66249ec_is.jpg',
'url': '/api/v4/people/1da75b85900e00adb072e91c56fd9149', 'type': 'people',
'url_token': 'xiaoxiaodouzi',
'id': '1da75b85900e00adb072e91c56fd9149',
'is_org': False}
1234567891011121314151617
pip install git+git://github.com/lzjun567/zhihu-api --upgradefrom zhihu import Zhihuzhihu = Zhihu()zhihu.user(user_slug="xiaoxiaodouzi")&{'avatar_url_template': '/v2-ca67febde704c66249ec_{size}.jpg',&&&& 'badge': [],&&&& 'name': '我是小号',&&&& 'headline': '程序员',&&&& 'gender': -1,&&&& 'user_type': 'people',&&&& 'is_advertiser': False,&&&& 'avatar_url': '/v2-ca67febde704c66249ec_is.jpg',&&&& 'url': '/api/v4/people/1da75b85900e00adb072e91c56fd9149', 'type': 'people',&&&& 'url_token': 'xiaoxiaodouzi',&&&& 'id': '1da75b85900e00adb072e91c56fd9149',&&&& 'is_org': False}
pip install leakPasswd
import leakPasswd
leakPasswd.findBreach('taobao')
pip install leakPasswdimport leakPasswdleakPasswd.findBreach('taobao')
pip install ngxtop
running for 411 seconds, 64332 records processed: 156.60 req/sec
avg_bytes_sent |
|---------+------------------+-------+-------+-------+-------|
| request_path
avg_bytes_sent |
|------------------------------------------+---------+------------------+-------+-------+-------+-------|
| /abc/xyz/xxxx
434.693 | 20935 |
| /xxxxx.json
| /xxxxx/xxx/xxxxxxxxxxxxx
| /xxxxx/xxx/xxxxxxxx
| /xxxxx/xxx/xxxxxxx
| /static/js/minified/utils.min.js
| /static/js/minified/xxxxxxx.min.v1.js
| /static/tracking/js/xxxxxxxx.js
| /xxxxx/xxx.html
| /xxxxx/xxxx.json
12345678910111213141516171819202122
pip install ngxtop$ ngxtoprunning for 411 seconds, 64332 records processed: 156.60 req/sec&Summary:|&& count |&& avg_bytes_sent |&& 2xx |&& 3xx |&& 4xx |&& 5xx ||---------+------------------+-------+-------+-------+-------||&& 64332 |&&&&&&&&
| 61262 |&&2994 |&&&&71 |&&&& 5 |&Detailed:| request_path&&&&&&&&&&&&&&&&&&&&&&&&&&&& |&& count |&& avg_bytes_sent |&& 2xx |&& 3xx |&& 4xx |&& 5xx ||------------------------------------------+---------+------------------+-------+-------+-------+-------|| /abc/xyz/xxxx&&&&&&&&&&&&&&&&&&&&&&&&&&&&|&& 20946 |&&&&&&&&&&434.693 | 20935 |&&&& 0 |&&&&11 |&&&& 0 || /xxxxx.json&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&|&&&&5633 |&&&&&&&&
|&&5633 |&&&& 0 |&&&& 0 |&&&& 0 || /xxxxx/xxx/xxxxxxxxxxxxx&&&&&&&&&&&&&&&& |&&&&3629 |&&&&&&&&
|&&3626 |&&&& 0 |&&&& 3 |&&&& 0 || /xxxxx/xxx/xxxxxxxx&&&&&&&&&&&&&&&&&&&&&&|&&&&3627 |&&&&&&&& |&&3623 |&&&& 0 |&&&& 4 |&&&& 0 || /xxxxx/xxx/xxxxxxx&&&&&&&&&&&&&&&&&&&&&& |&&&&3624 |&&&&&&&&
|&&3621 |&&&& 0 |&&&& 3 |&&&& 0 || /static/js/minified/utils.min.js&&&&&&&& |&&&&3031 |&&&&&&&&
|&&2104 |&& 927 |&&&& 0 |&&&& 0 || /static/js/minified/xxxxxxx.min.v1.js&&&&|&&&&2889 |&&&&&&&&
|&&2068 |&& 821 |&&&& 0 |&&&& 0 || /static/tracking/js/xxxxxxxx.js&&&&&&&&&&|&&&&2594 |&&&&&&&&
|&&1927 |&& 667 |&&&& 0 |&&&& 0 || /xxxxx/xxx.html&&&&&&&&&&&&&&&&&&&&&&&&&&|&&&&2521 |&&&&&&&&&&573.597 |&&2520 |&&&& 0 |&&&& 1 |&&&& 0 || /xxxxx/xxxx.json&&&&&&&&&&&&&&&&&&&&&&&& |&&&&1840 |&&&&&&&&&&800.542 |&&1839 |&&&& 0 |&&&& 1 |&&&& 0 |
pip install iquery
iquery (-c|彩票)
iquery (-m|电影)
iquery -p &city&
iquery -l song [singer]
iquery -p &city& &hospital&
iquery &city& &show& [&days&]
iquery [-dgktz] &from& &to& &date&
Arguments:
演出的类型
查询近(几)天内的演出, 若省略, 默认15
城市名,加在-p后查询该城市所有莆田医院
医院名,加在city后检查该医院是否是莆田系
-h, --help
显示该帮助菜单.
动车,高铁,快速,特快,直达
热映电影查询
莆田系医院查询
演唱会 音乐会 音乐剧 歌舞剧 儿童剧 话剧
歌剧 比赛 舞蹈 戏曲 相声 杂技 马戏 魔术
12345678910111213141516171819202122232425262728293031323334
pip install iquery Usage:&&&&&&&&iquery (-c|彩票)&&&&&&&&iquery (-m|电影)&&&&&&&&iquery -p &city&&&&&&&&&iquery -l song [singer]&&&&&&&&iquery -p &city& &hospital&&&&&&&&&iquery &city& &show& [&days&]&&&&&&&&iquery [-dgktz] &from& &to& &date&&&&&&Arguments:&&&&&&&&from&&&&&&&&&&&& 出发站&&&&&&&&to&&&&&&&&&&&&&& 到达站&&&&&&&&date&&&&&&&&&&&& 查询日期&&&&&&&&&city&&&&&&&&&&&& 查询城市&&&&&&&&show&&&&&&&&&&&& 演出的类型&&&&&&&&days&&&&&&&&&&&& 查询近(几)天内的演出, 若省略, 默认15&&&&&&&&&city&&&&&&&&&&&& 城市名,加在-p后查询该城市所有莆田医院&&&&&&&&hospital&&&&&&&& 医院名,加在city后检查该医院是否是莆田系&&&&&&Options:&&&&&&&&-h, --help&&&&&& 显示该帮助菜单.&&&&&&&&-dgktz&&&&&&&&&& 动车,高铁,快速,特快,直达&&&&&&&&-m&&&&&&&&&&&&&& 热映电影查询&&&&&&&&-p&&&&&&&&&&&&&& 莆田系医院查询&&&&&&&&-l&&&&&&&&&&&&&& 歌词查询&&&&&&&&-c&&&&&&&&&&&&&& 彩票查询&&&&&Show:&&&&&&&&演唱会 音乐会 音乐剧 歌舞剧 儿童剧 话剧&&&&&&&&歌剧 比赛 舞蹈 戏曲 相声 杂技 马戏 魔术
可能感兴趣的话题
o 276 回复
关于 Python 频道
Python频道分享 Python 开发技术、相关的行业动态。
新浪微博:
推荐微信号
(加好友请注明来意)
– 好的话题、有启发的回复、值得信赖的圈子
– 分享和发现有价值的内容与观点
– 为IT单身男女服务的征婚传播平台
– 优秀的工具资源导航
– 翻译传播优秀的外文文章
– 国内外的精选文章
– UI,网页,交互和用户体验
– 专注iOS技术分享
– 专注Android技术分享
– JavaScript, HTML5, CSS
– 专注Java技术分享
– 专注Python技术分享
& 2017 伯乐在线

我要回帖

更多关于 nodejs可以用来做什么 的文章

 

随机推荐