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