
Python
Python练习
csdn_start
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
爬取京东华为mate30Pro5G的评论数据并制作云词
爬取京东评论数据采用selenium库 爬取代码如下: # -*- coding: utf-8 -*- from selenium import webdriver import json import time # 数据写入文本 def write_to_file(content, filepath): with open(filepath, 'a', encoding='utf-...原创 2020-04-05 21:34:17 · 636 阅读 · 0 评论 -
Python opencv库的娱乐
使用一下Python的opencv看看。将一张120120的图片变成由120120张120*120图片组成的图片 # -*- coding: utf-8 -*- import cv2 import numpy as np # 加载图片 def local_image(file): # 加载图片 cv_m = cv2.imread(file) return cv_m ...原创 2020-03-29 13:27:04 · 200 阅读 · 0 评论 -
使用selenium爬取京东商品搜索结果(名字、价格、评价数)
使用selenium爬取京东商品搜索结果(名字、价格、评价数)使用selenium爬取京东商品搜索结果(名字、价格、评价数)一、环境二、项目解析 使用selenium爬取京东商品搜索结果(名字、价格、评价数) Selenium是一个用于Web应用程序测试的工具。Selenium测试直接运行在浏览器中,就像真正的用户在操作一样。 一、环境 Ubuntu18.04 Python3 PyCharm M...原创 2020-03-22 11:57:27 · 1511 阅读 · 0 评论