- 博客(6)
- 收藏
- 关注
原创 Python3 模拟微信群发功能
#coding=utf-8 from wxpy import *if __name__=='__main__': bot = Bot() friend = bot.friends() lfri = [] for fri in friend: lfri.append(fri.name) for fri in lfri[:2]: ...
2018-09-29 23:06:13 2927
原创 Python3 获取CSDN博客所有文章标题及阅读数
#coding=utf-8import reimport requestsfrom bs4 import BeautifulSoupfrom prettytable import PrettyTabledef getHtml(url): headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; ...
2018-09-29 00:04:05 1819
原创 Python3 CssSelector定位方式实例详解
例子:html = """ <div id='content'> <ul class='list'> <li class='one'>哈哈</li> <li class='two'>Two</li> &l
2018-09-26 23:07:17 8430 4
原创 Python3 css选择器实战(一)
首先安装cssselectpip install cssselect再安装lxmlpip install lxml#coding=utf-8 import requestsfrom lxml import etree def getHtml(url): page = requests.get(url) html =page.text ...
2018-09-26 22:03:50 3187
原创 Python3 爬取豆瓣图书Top250并存入Excel中
#coding=utf-8import reimport xlwtimport requestsfrom bs4 import BeautifulSoup def getHtml(url): headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/201001...
2018-09-26 21:34:21 3983
原创 python3 爬取豆瓣电影TOP250,漂亮表格彩色显示
#coding=utf-8 import requestsimport refrom bs4 import BeautifulSoupfrom prettytable import PrettyTablefrom colorama import Fore,Style def getHtml(url): headers = {'User-Agent': 'Mozill...
2018-09-25 21:28:06 2010 4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人