基于python爬虫的智慧人才数据分析系统

文末获取源码和万字论文,制作不易,感谢点赞支持。

废话不多说,先看效果图

更多效果图可私信我获取

源码分享

import os
import sysdef main():"""Run administrative tasks."""os.environ.setdefault('DJANGO_SETTINGS_MODULE', '智慧人才数据分析系统.settings')try:from django.core.management import execute_from_command_lineexcept ImportError as exc:raise ImportError("Couldn't import Django. Are you sure it's installed and ""available on your PYTHONPATH environment variable? Did you ""forget to activate a virtual environment?") from excexecute_from_command_line(sys.argv)if __name__ == '__main__':main()
import jieba  # 分词
from matplotlib import pylab as plt     # 绘图,数据可视化
from wordcloud import WordCloud         # 词云
from PIL import Image                   # 图片处理
import numpy as np                      # 矩阵运算
from pymysql import *
import json
# wordCloud# 所有词
def get_img(field,targetImgSrc,resImgSrc):con = connect(host='localhost', user='root', password='root', database='boss', port=3306, charset='utf8mb4')cursor = con.cursor()sql = f"select {field} from jobinfo"cursor.execute(sql)data = cursor.fetchall()text = ''for i,item in enumerate(data):text += item[0]cursor.close()con.close()# 分词cut = jieba.cut(text)string = ' '.join(cut)print(string)# 图片img = Image.open(targetImgSrc)  # 打开遮罩图片img_arr = np.array(img)  # 将图片转化为列表wc = WordCloud(background_color='white',mask=img_arr,font_path='STHUPO.TTF')wc.generate_from_text(string)# 绘制图片fig = plt.figure(1)plt.imshow(wc)plt.axis('off')  # 不显示坐标轴# 显示生成的词语图片# plt.show()# 输入词语图片到文件plt.savefig(resImgSrc, dpi=500)def get_addressCompanyTags_img(targetImgSrc,resImgSrc,addrress):con = connect(host='localhost', user='root', password='root', database='boss', port=3306, charset='utf8mb4')cursor = con.cursor()sql = f"select companyTags from jobinfo where address = '{addrress}'"cursor.execute(sql)data = cursor.fetchall()text = ''for i, item in enumerate(data):if item[0] != '无':tags = json.loads(item[0])print(tags)for j in tags:text = text + jcursor.close()con.close()# 分词cut = jieba.cut(text)string = ' '.join(cut)print(string)# 图片img = Image.open(targetImgSrc)  # 打开遮罩图片img_arr = np.array(img)  # 将图片转化为列表wc = WordCloud(background_color='white',mask=img_arr,font_path='STHUPO.TTF')wc.generate_from_text(string)# 绘制图片fig = plt.figure(1)plt.imshow(wc)plt.axis('off')  # 不显示坐标轴# 显示生成的词语图片# plt.show()# 输入词语图片到文件plt.savefig(resImgSrc, dpi=500)# get_img('companyTitle',r'.\static\2.jpg',r'.\static\companyTitle.jpg')
# get_img('summary',r'.\static\2.jpg',r'.\static\summary_cloud.jpg')
# get_img('casts',r'.\static\3.jpg',r'.\static\casts_cloud.jpg')

/* iCheck plugin Minimal skin
----------------------------------- */
.icheckbox_minimal,
.iradio_minimal {display: inline-block;*display: inline;vertical-align: middle;margin: 0;padding: 0;width: 18px;height: 18px;background: url(../image/minimal.png) no-repeat;border: none;cursor: pointer;
}.icheckbox_minimal {background-position: 0 0;
}.icheckbox_minimal.hover {background-position: -20px 0;}.icheckbox_minimal.checked {background-position: -40px 0;}.icheckbox_minimal.disabled {background-position: -60px 0;cursor: default;}.icheckbox_minimal.checked.disabled {background-position: -80px 0;}.iradio_minimal {background-position: -100px 0;
}.iradio_minimal.hover {background-position: -120px 0;}.iradio_minimal.checked {background-position: -140px 0;}.iradio_minimal.disabled {background-position: -160px 0;cursor: default;}.iradio_minimal.checked.disabled {background-position: -180px 0;}/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (-moz-min-device-pixel-ratio: 1.5),only screen and (-o-min-device-pixel-ratio: 3/2),only screen and (min-device-pixel-ratio: 1.5) {.icheckbox_minimal,.iradio_minimal {background-image: url(../image/minimal@2x.png);-webkit-background-size: 200px 20px;background-size: 200px 20px;}
}/* red */
.icheckbox_minimal-red,
.iradio_minimal-red {display: inline-block;*display: inline;vertical-align: middle;margin: 0;padding: 0;width: 18px;height: 18px;background: url(../image/red.png) no-repeat;border: none;cursor: pointer;
}.icheckbox_minimal-red {background-position: 0 0;
}.icheckbox_minimal-red.hover {background-position: -20px 0;}.icheckbox_minimal-red.checked {background-position: -40px 0;}.icheckbox_minimal-red.disabled {background-position: -60px 0;cursor: default;}.icheckbox_minimal-red.checked.disabled {background-position: -80px 0;}.iradio_minimal-red {background-position: -100px 0;
}.iradio_minimal-red.hover {background-position: -120px 0;}.iradio_minimal-red.checked {background-position: -140px 0;}.iradio_minimal-red.disabled {background-position: -160px 0;cursor: default;}.iradio_minimal-red.checked.disabled {background-position: -180px 0;}/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (-moz-min-device-pixel-ratio: 1.5),only screen and (-o-min-device-pixel-ratio: 1.5),only screen and (min-device-pixel-ratio: 1.5) {.icheckbox_minimal-red,.iradio_minimal-red {background-image: url(../image/red@2x.png);-webkit-background-size: 200px 20px;background-size: 200px 20px;}
}/* green */
.icheckbox_minimal-green,
.iradio_minimal-green {display: inline-block;*display: inline;vertical-align: middle;margin: 0;padding: 0;width: 18px;height: 18px;background: url(../image/green.png) no-repeat;border: none;cursor: pointer;
}.icheckbox_minimal-green {background-position: 0 0;
}.icheckbox_minimal-green.hover {background-position: -20px 0;}.icheckbox_minimal-green.checked {background-position: -40px 0;}.icheckbox_minimal-green.disabled {background-position: -60px 0;cursor: default;}.icheckbox_minimal-green.checked.disabled {background-position: -80px 0;}.iradio_minimal-green {background-position: -100px 0;
}.iradio_minimal-green.hover {background-position: -120px 0;}.iradio_minimal-green.checked {background-position: -140px 0;}.iradio_minimal-green.disabled {background-position: -160px 0;cursor: default;}.iradio_minimal-green.checked.disabled {background-position: -180px 0;}/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (-moz-min-device-pixel-ratio: 1.5),only screen and (-o-min-device-pixel-ratio: 1.5),only screen and (min-device-pixel-ratio: 1.5) {.icheckbox_minimal-green,.iradio_minimal-green {background-image: url(../image/green@2x.png);-webkit-background-size: 200px 20px;background-size: 200px 20px;}
}/* blue */
.icheckbox_minimal-blue,
.iradio_minimal-blue {display: inline-block;*display: inline;vertical-align: middle;margin: 0;padding: 0;width: 18px;height: 18px;background: url(../image/blue.png) no-repeat;border: none;cursor: pointer;
}.icheckbox_minimal-blue {background-position: 0 0;
}.icheckbox_minimal-blue.hover {background-position: -20px 0;}.icheckbox_minimal-blue.checked {background-position: -40px 0;}.icheckbox_minimal-blue.disabled {background-position: -60px 0;cursor: default;}.icheckbox_minimal-blue.checked.disabled {background-position: -80px 0;}.iradio_minimal-blue {background-position: -100px 0;
}.iradio_minimal-blue.hover {background-position: -120px 0;}.iradio_minimal-blue.checked {background-position: -140px 0;}.iradio_minimal-blue.disabled {background-position: -160px 0;cursor: default;}.iradio_minimal-blue.checked.disabled {background-position: -180px 0;}/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (-moz-min-device-pixel-ratio: 1.5),only screen and (-o-min-device-pixel-ratio: 3/2),only screen and (min-device-pixel-ratio: 1.5) {.icheckbox_minimal-blue,.iradio_minimal-blue {background-image: url(../image/blue@2x.png);-webkit-background-size: 200px 20px;background-size: 200px 20px;}
}/* aero */
.icheckbox_minimal-aero,
.iradio_minimal-aero {display: inline-block;*display: inline;vertical-align: middle;margin: 0;padding: 0;width: 18px;height: 18px;background: url(../image/aero.png) no-repeat;border: none;cursor: pointer;
}.icheckbox_minimal-aero {background-position: 0 0;
}.icheckbox_minimal-aero.hover {background-position: -20px 0;}.icheckbox_minimal-aero.checked {background-position: -40px 0;}.icheckbox_minimal-aero.disabled {background-position: -60px 0;cursor: default;}.icheckbox_minimal-aero.checked.disabled {background-position: -80px 0;}.iradio_minimal-aero {background-position: -100px 0;
}.iradio_minimal-aero.hover {background-position: -120px 0;}.iradio_minimal-aero.checked {background-position: -140px 0;}.iradio_minimal-aero.disabled {background-position: -160px 0;cursor: default;}.iradio_minimal-aero.checked.disabled {background-position: -180px 0;}/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (-moz-min-device-pixel-ratio: 1.5),only screen and (-o-min-device-pixel-ratio: 3/2),only screen and (min-device-pixel-ratio: 1.5) {.icheckbox_minimal-aero,.iradio_minimal-aero {background-image: url(../image/aero@2x.png);-webkit-background-size: 200px 20px;background-size: 200px 20px;}
}/* grey */
.icheckbox_minimal-grey,
.iradio_minimal-grey {display: inline-block;*display: inline;vertical-align: middle;margin: 0;padding: 0;width: 18px;height: 18px;background: url(../image/grey.png) no-repeat;border: none;cursor: pointer;
}.icheckbox_minimal-grey {background-position: 0 0;
}.icheckbox_minimal-grey.hover {background-position: -20px 0;}.icheckbox_minimal-grey.checked {background-position: -40px 0;}.icheckbox_minimal-grey.disabled {background-position: -60px 0;cursor: default;}.icheckbox_minimal-grey.checked.disabled {background-position: -80px 0;}.iradio_minimal-grey {background-position: -100px 0;
}.iradio_minimal-grey.hover {background-position: -120px 0;}.iradio_minimal-grey.checked {background-position: -140px 0;}.iradio_minimal-grey.disabled {background-position: -160px 0;cursor: default;}.iradio_minimal-grey.checked.disabled {background-position: -180px 0;}/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (-moz-min-device-pixel-ratio: 1.5),only screen and (-o-min-device-pixel-ratio: 1.5),only screen and (min-device-pixel-ratio: 1.5) {.icheckbox_minimal-grey,.iradio_minimal-grey {background-image: url(../image/grey@2x.png);-webkit-background-size: 200px 20px;background-size: 200px 20px;}
}/* orange */
.icheckbox_minimal-orange,
.iradio_minimal-orange {display: inline-block;*display: inline;vertical-align: middle;margin: 0;padding: 0;width: 18px;height: 18px;background: url(../image/orange.png) no-repeat;border: none;cursor: pointer;
}.icheckbox_minimal-orange {background-position: 0 0;
}.icheckbox_minimal-orange.hover {background-position: -20px 0;}.icheckbox_minimal-orange.checked {background-position: -40px 0;}.icheckbox_minimal-orange.disabled {background-position: -60px 0;cursor: default;}.icheckbox_minimal-orange.checked.disabled {background-position: -80px 0;}.iradio_minimal-orange {background-position: -100px 0;
}.iradio_minimal-orange.hover {background-position: -120px 0;}.iradio_minimal-orange.checked {background-position: -140px 0;}.iradio_minimal-orange.disabled {background-position: -160px 0;cursor: default;}.iradio_minimal-orange.checked.disabled {background-position: -180px 0;}/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (-moz-min-device-pixel-ratio: 1.5),only screen and (-o-min-device-pixel-ratio: 1.5),only screen and (min-device-pixel-ratio: 1.5) {.icheckbox_minimal-orange,.iradio_minimal-orange {background-image: url(../image/orange@2x.png);-webkit-background-size: 200px 20px;background-size: 200px 20px;}
}/* yellow */
.icheckbox_minimal-yellow,
.iradio_minimal-yellow {display: inline-block;*display: inline;vertical-align: middle;margin: 0;padding: 0;width: 18px;height: 18px;background: url(../image/yellow.png) no-repeat;border: none;cursor: pointer;
}.icheckbox_minimal-yellow {background-position: 0 0;
}.icheckbox_minimal-yellow.hover {background-position: -20px 0;}.icheckbox_minimal-yellow.checked {background-position: -40px 0;}.icheckbox_minimal-yellow.disabled {background-position: -60px 0;cursor: default;}.icheckbox_minimal-yellow.checked.disabled {background-position: -80px 0;}.iradio_minimal-yellow {background-position: -100px 0;
}.iradio_minimal-yellow.hover {background-position: -120px 0;}.iradio_minimal-yellow.checked {background-position: -140px 0;}.iradio_minimal-yellow.disabled {background-position: -160px 0;cursor: default;}.iradio_minimal-yellow.checked.disabled {background-position: -180px 0;}/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (-moz-min-device-pixel-ratio: 1.5),only screen and (-o-min-device-pixel-ratio: 1.5),only screen and (min-device-pixel-ratio: 1.5) {.icheckbox_minimal-yellow,.iradio_minimal-yellow {background-image: url(../image/yellow@2x.png);-webkit-background-size: 200px 20px;background-size: 200px 20px;}
}/* pink */
.icheckbox_minimal-pink,
.iradio_minimal-pink {display: inline-block;*display: inline;vertical-align: middle;margin: 0;padding: 0;width: 18px;height: 18px;background: url(../image/pink.png) no-repeat;border: none;cursor: pointer;
}.icheckbox_minimal-pink {background-position: 0 0;
}.icheckbox_minimal-pink.hover {background-position: -20px 0;}.icheckbox_minimal-pink.checked {background-position: -40px 0;}.icheckbox_minimal-pink.disabled {background-position: -60px 0;cursor: default;}.icheckbox_minimal-pink.checked.disabled {background-position: -80px 0;}.iradio_minimal-pink {background-position: -100px 0;
}.iradio_minimal-pink.hover {background-position: -120px 0;}.iradio_minimal-pink.checked {background-position: -140px 0;}.iradio_minimal-pink.disabled {background-position: -160px 0;cursor: default;}.iradio_minimal-pink.checked.disabled {background-position: -180px 0;}/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (-moz-min-device-pixel-ratio: 1.5),only screen and (-o-min-device-pixel-ratio: 1.5),only screen and (min-device-pixel-ratio: 1.5) {.icheckbox_minimal-pink,.iradio_minimal-pink {background-image: url(../image/pink@2x.png);-webkit-background-size: 200px 20px;background-size: 200px 20px;}
}/* purple */
.icheckbox_minimal-purple,
.iradio_minimal-purple {display: inline-block;*display: inline;vertical-align: middle;margin: 0;padding: 0;width: 18px;height: 18px;background: url(../image/purple.png) no-repeat;border: none;cursor: pointer;
}.icheckbox_minimal-purple {background-position: 0 0;
}.icheckbox_minimal-purple.hover {background-position: -20px 0;}.icheckbox_minimal-purple.checked {background-position: -40px 0;}.icheckbox_minimal-purple.disabled {background-position: -60px 0;cursor: default;}.icheckbox_minimal-purple.checked.disabled {background-position: -80px 0;}.iradio_minimal-purple {background-position: -100px 0;
}.iradio_minimal-purple.hover {background-position: -120px 0;}.iradio_minimal-purple.checked {background-position: -140px 0;}.iradio_minimal-purple.disabled {background-position: -160px 0;cursor: default;}.iradio_minimal-purple.checked.disabled {background-position: -180px 0;}/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (-moz-min-device-pixel-ratio: 1.5),only screen and (-o-min-device-pixel-ratio: 1.5),only screen and (min-device-pixel-ratio: 1.5) {.icheckbox_minimal-purple,.iradio_minimal-purple {background-image: url(../image/purple@2x.png);-webkit-background-size: 200px 20px;background-size: 200px 20px;}
}

源码过多,暂不一一列举,需要的朋友可以私信我获取(此源码需收取少量费用)

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/484406.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Android 分词的两种方式

前言: 本文分别介绍了原生和三方(Jieba)两种分词方式的使用和注意事项 1、安卓原生BreakIterator分词 比较简单,但是效果不太行 /*** 功能:原生分词* 参数:text:需要分词的语句* 返回值:return&#xf…

TCP Analysis Flags 之 TCP Spurious Retransmission

前言 默认情况下,Wireshark 的 TCP 解析器会跟踪每个 TCP 会话的状态,并在检测到问题或潜在问题时提供额外的信息。在第一次打开捕获文件时,会对每个 TCP 数据包进行一次分析,数据包按照它们在数据包列表中出现的顺序进行处理。可…

react 路由鉴权

权限路由一般两种 1中接口中返回菜单 2 接口中返回权限,前端做匹配 一般都是那种结合,react中没有vue那种钩子函数如何做? 在项目中写一个高阶函数,在高阶函数中判断权限、是否登录等操作app.tsx或者man.tsx中使用 《AuthRouter》…

【spring mvc】全局处理请求体和响应体

目录 说明实现效果逻辑图 实现步骤创建公共处理的请求和响应的类api接口测试前端请求响应结果 扩展Response响应格式实体ResponseCode 响应状态码RSA工具类 RequestBodyAdvice 介绍使用场景 ResponseBodyAdvice 介绍使用场景 说明 由于项目中需要进行加密传输数据提高项目安全…

FlyHttp 的设计思想:前端 API 自动化构建工具

FlyHttp的相关文章: FlyHttp 的诞生:从认识各种网络请求开始 FlyHttp 的设计思想:前端 API 自动化构建工具 FlyHttp 的使用:如何高效使用 FlyHttp,支持 JS、TS 项目 FlyHttp 的最佳实践:加速项目级 API…

在CentOS上无Parallel时并发上传.wav文件的Shell脚本解决方案

在CentOS上无Parallel时并发上传.wav文件的Shell脚本解决方案 背景概述解决方案脚本实现脚本说明使用指南注意事项在CentOS操作系统环境中,若需并发上传特定目录下的.wav文件至HTTP服务器,而系统未安装GNU parallel工具,我们可通过其他方法实现此需求。本文将介绍一种利用Sh…

springboot整合flowable工作流

1、工作流介绍 1.Flowable起源于Activiti工作流引擎,由Activiti的主要开发者在2016年创建。它继承了Activiti的众多优点,并在此基础上进行了优化和改进,以提供更加稳定、高效的工作流管理解决方案。Flowable与Activiti有着共同的祖先&#x…

Linux Shell 脚本题目集(2)

1、使用 case 语句根据用户输入的分数(0-100)输出相应的成绩等级(A, B, C, D)。 #! /bin/bashread -p "请输入您的分数(0-100):" score# 验证输入是否为数字且在0到100之间 if ! [[ …

交换机四大镜像(端口镜像、流镜像、VLAN镜像、MAC镜像)应用场景、配置实例及区别对比

在网络管理中,端口镜像、流镜像、VLAN镜像和MAC镜像都是用于监控和分析网络流量的重要技术。 端口镜像(Port Mirroring) 定义:端口镜像是将一个或多个源端口的流量复制到一个目标端口,以便于网络管理员能够监控和分析…

Redis(1)

Redis是一个在内存中存储数据的中间件。 1.在内存中存储数据。 通过数据结构来存储,mysql通过表的方式存储数据,是关系型数据库,redis通过键值对存储,key的类型是string,value的类型是非关系型数据库。 2.可编程的 …

基于Pyside6开发一个通用的在线升级工具

UI main.ui <?xml version"1.0" encoding"UTF-8"?> <ui version"4.0"><class>MainWindow</class><widget class"QMainWindow" name"MainWindow"><property name"geometry"&…

Linux 系统/etc目录下配置文件分类

目录 一、网络相关配置文件 主机名与 IP 映射类 /etc/hosts /etc/hostname 网络接口配置类 /etc/sysconfig/network-scripts/ifcfg-ens33 DNS 相关类 /etc/resolv.conf /etc/host.conf 网络服务相关类 /etc/hosts.allow文件 /etc/hosts.deny文件 /etc/netconfig …

自由学习记录(28)

C# 中的流&#xff08;Stream&#xff09; 流&#xff08;Stream&#xff09;是用于读取和写入数据的抽象基类。 流表示从数据源读取或向数据源写入数据的矢量过程。 C# 中的流类是从 System.IO.Stream 基类派生的&#xff0c;提供了多种具体实现&#xff0c;每种实现都针对…

Redis3——线程模型与数据结构

Redis3——线程模型与数据结构 本文讲述了redis的单线程模型和IO多线程工作原理&#xff0c;以及几个主要数据结构的实现。 1. Redis的单线程模型 redis6.0之前&#xff0c;一个redis进程只有一个io线程&#xff0c;通过reactor模式可以连接大量客户端&#xff1b;redis6.0为了…

Elasticsearch Serverless 现已正式发布

作者&#xff1a;来自 Elastic Yaru Lin 基于全新无状态&#xff08;stateless&#xff09;架构的 Elasticsearch Serverless 现已正式发布。它采用完全托管方式&#xff0c;因此你可以快速启动项目而无需操作或升级&#xff0c;并且可以使用最新的向量搜索和生成式 AI 功能。 …

Android CoordinatorLayout:打造高效交互界面的利器

目录 一、CoordinatorLayout 介绍及特点 二、使用方法 2.1 创建 CoordinatorLayout 布局 2.2 添加需要协调的子视图 2.3 自定义 Behavior 三、结语 相关推荐 在Android开发中&#xff0c;面对复杂多变的用户界面需求&#xff0c;CoordinatorLayout以其强大的交互管理能力…

基于Java Springboot旅游攻略APP且微信小程序

一、作品包含 源码数据库设计文档万字PPT全套环境和工具资源部署教程 二、项目技术 前端技术&#xff1a;Html、Css、Js、Vue、Element-ui 数据库&#xff1a;MySQL 后端技术&#xff1a;Java、Spring Boot、MyBatis 三、运行环境 开发工具&#xff1a;IDEA/eclipse 微信…

多模态大语言模型的对比

简介 文章主要对比了包括 VideoLLaMA 2 、CogVLM2-video 、MiniCPM-V等模型 目前主流的多模态视觉问答大模型&#xff0c;大部分采用视觉编码器、大语言模型、图像到文本特征的投影模块 目录 简介1. VideoLLaMA 21.1 网络结构1.2 STC connector具体的架构 2. MiniCPM-V 2.62.…

Android渗透环境配置教程

工具 模拟器 ADB brew install android-platform-tools set import cert # cer 证书转为 pem 证书 openssl x509 -inform DER -in cacert.der -out cacert.pem# 获取证书的 hash 值 hash$(openssl x509 -inform PEM -subject_hash_old -in cacert.pem | head -n 1)# 将 pem…

Microi吾码|.NET、VUE快速搭建项目,低代码便捷开发教程

Microi吾码&#xff5c;VUE快速搭建项目&#xff0c;低代码便捷开发教程 一、摘要二、Microi吾码介绍2.1 功能介绍2.2 团队介绍2.3 上线项目案例 三、VUE中使用Microi吾码3.1 前期了解3.2 创建第一个低代码应用3.3 接口API使用说明3.4 引擎界面可视化配置&#xff0c;生成API3.…