
Python
文章平均质量分 79
想当房东的小男孩
如何让别人体会到我深邃浩瀚的精神意志
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python 提取图片主色调
# !/usr/bin/env python # -*- coding: utf-8 -*- import colorsys import image as image from PIL import Image import requests def downloadImg(url): s = requests.session() s.keep_alive = False r = requests.get(url) path = 'yourPath' # wri原创 2020-08-05 18:04:33 · 1513 阅读 · 0 评论 -
Python 自动化浏览器操作
import time from selenium import webdriver def openChrome(url): option = webdriver.ChromeOptions() option.add_argument('--disable-gpu') option.add_argument('blink-settings=imagesEnabled=false') option.add_experimental_option('excludeSwitc原创 2020-08-04 13:56:30 · 262 阅读 · 0 评论 -
Python爬取小说
Python爬取小说 这里主要爬取笔趣阁的链接 因为笔趣阁对段时间的爬取次数做了限制,所以每次我们只能爬取十章 # coding:utf-8 import re import soup as soup from bs4 import BeautifulSoup import requests import chardet i=0 # #限定每行字数 def cut_text(text,len...原创 2020-03-04 17:10:14 · 198 阅读 · 0 评论