自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除