python笔记基础篇(3)——

python笔记基础篇(3)——

Date:

参考资料:

廖雪峰https://www.liaoxuefeng.com/

慕课python教程:http://www.imooc.com/learn/317

textclass.net :http://www.testclass.net/python

《Automate the Boring stuff with Python》


一.从web抓取信息

webbrowser,requests,Beautiful Soup,selenium

1.1

webbrowser:python自带,打开浏览器获取指定页面

import sys,pyperclip,webbrowser

if len(sys.argv)>1:
    address =' '.join(sys.argv[1:])
else:
    address = pyperclip.paste()
    webbrowser.open('http://www.google.com/maps/place/'+address)

1.2从web下载文件

request: 从因特网下载文件或者网页

1.3 selenium 模块控制器

猜你喜欢

转载自blog.csdn.net/acycy/article/details/80411483
今日推荐