当前位置:   article > 正文

毕业设计:Python招聘数据分析可视化系统+爬虫+Flask框架(源码+文档)_flask selenium

flask selenium

毕业设计:2023-2024年计算机专业毕业设计选题汇总(建议收藏)

毕业设计:2023-2024年最新最全计算机专业毕设选题推荐汇总

感兴趣的可以先收藏起来,还有大家在毕设选题,项目以及论文编写等相关问题都可以给我留言咨询,希望帮助更多的人 。

1、项目介绍

技术栈:
Python语言、Flask框架、selenium爬虫框架、MySQL数据库、Echarts可视化、数据清洗

2、项目界面

(1)系统首页----数据概况

在这里插入图片描述

(2)数据词云图分析

在这里插入图片描述

(3)Python岗位的数据分析
在这里插入图片描述

(4)薪资预测推测依据
在这里插入图片描述

(5)薪资预测结果
在这里插入图片描述

(6)岗位匹配

在这里插入图片描述

(7)岗位匹配结果

在这里插入图片描述

(8)数据采集
在这里插入图片描述

3、项目说明

Flask框架和selenium框架的boss直聘数据采集分析可视化系统是一个基于Python编程语言开发的应用。它利用Flask框架作为后端,selenium框架作为数据采集的工具,可以帮助用户采集、分析和可视化boss直聘网站上的招聘数据。

该系统的主要功能包括:

  1. 数据采集:利用selenium框架模拟用户在boss直聘网站上的操作,自动搜索、浏览和抓取招聘信息。用户可以通过系统提供的界面输入关键词、地区等搜索条件,系统将自动抓取相关的招聘信息并保存到数据库中。

  2. 数据分析:系统提供了各种数据分析功能,包括对招聘信息的统计分析、关键词提取、薪资分布等。用户可以通过系统的图表和报表查看招聘市场的趋势和变化,了解不同职位的需求情况,帮助用户做出更明智的求职或招聘决策。

  3. 可视化展示:系统利用Flask框架提供了一个用户友好的前端界面,通过图表和地图等方式直观地展示招聘数据。用户可以通过系统的界面进行交互,自定义展示的内容和方式,以满足不同的需求和分析目的。

总之,Flask框架和selenium框架的boss直聘数据采集分析可视化系统是一个功能强大、易于使用的工具,可以帮助用户快速获取、分析和可视化boss直聘网站上的招聘数据,为求职者和招聘方提供更全面、准确的信息支持。

4、部分代码

from flask import Flask, render_template, request

import mysql
import json
import cloud
import match
import speculate

from flask_caching import Cache

app = Flask(__name__)

'''缓存设置'''
cache = Cache()
cache.init_app(app=app, config={'CACHE_TYPE': 'simple'})
timeout = 300



'''首页'''


@app.route('/')
@cache.cached(timeout=timeout)
def frontPage():
    wc = cloud.Cloud()
    wc.popularJobs()
    wc.welfareCloud()
    sql = mysql.MySql()
    num = sql.getLastNum()
    avg = sql.getAllAvgSalary()
    Max = sql.getMaxSalary()
    Min = sql.getMinSalary()
    return render_template('index.html', num=num, avg=avg, Max=Max, Min=Min)


@app.route('/radar')
@cache.cached(timeout=timeout)
def Radar():
    sql = mysql.MySql()
    radar_name = [json.loads(sql.cRadar())['name'].replace('c', 'C/C++'),
                  json.loads(sql.javaRadar())['name'].replace('java', 'Java'),
                  json.loads(sql.pythonRadar())['name'].replace('python', 'Python'),
                  json.loads(sql.phpRadar())['name'].replace('php', 'PHP'),
                  json.loads(sql.iosRadar())['name'].replace('ios', 'IOS'),
                  json.loads(sql.webRadar())['name'].replace('web', 'web前端'),
                  json.loads(sql.AndroidRadar())['name'],
                  json.loads(sql.u3dUeRadar())['name'].replace('u3dUe', 'Unity3D/UE'),
                  json.loads(sql.c23Radar())['name'].replace('c23', 'C#/.NET'),
                  json.loads(sql.algorithmRadar())['name'].replace('algorithm', '算法'),
                  json.loads(sql.testRadar())['name'].replace('test', '测试'),
                  json.loads(sql.oamRadar())['name'].replace('oam', '运维')]

    radar_value = [json.loads(sql.cRadar())['value'],
                   json.loads(sql.javaRadar())['value'],
                   json.loads(sql.pythonRadar())['value'],
                   json.loads(sql.phpRadar())['value'],
                   json.loads(sql.iosRadar())['value'],
                   json.loads(sql.webRadar())['value'],
                   json.loads(sql.AndroidRadar())['value'],
                   json.loads(sql.u3dUeRadar())['value'],
                   json.loads(sql.c23Radar())['value'],
                   json.loads(sql.algorithmRadar())['value'],
                   json.loads(sql.testRadar())['value'],
                   json.loads(sql.oamRadar())['value']]
    return json.dumps({'name': radar_name, 'value': radar_value}, ensure_ascii=False)


@app.route('/getEducation')
@cache.cached(timeout=timeout)
def getEducation():
    sql = mysql.MySql()
    edu = sql.getEducation()
    return edu


@app.route('/getSalaryForEducation')
@cache.cached(timeout=timeout)
def getSalaryForEducation():
    sql = mysql.MySql()
    salary = sql.getSalaryForEducation()
    return salary


@app.route('/getExperience')
@cache.cached(timeout=timeout)
def getExperience():
    sql = mysql.MySql()
    exp = sql.getExperience()
    return exp


@app.route('/getSalaryForExperience')
@cache.cached(timeout=timeout)
def getSalaryForExperience():
    sql = mysql.MySql()
    salary = sql.getSalaryForExperience()
    return salary


@app.route('/getSalaryForCity')
@cache.cached(timeout=timeout)
def getSalaryForCity():
    sql = mysql.MySql()
    salary = sql.getSalaryForCity()
    return salary


@app.route('/index.html')
@cache.cached(timeout=timeout)
def index():
    wc = cloud.Cloud()
    wc.popularJobs()
    wc.welfareCloud()
    sql = mysql.MySql()
    num = sql.getLastNum()
    avg = sql.getAllAvgSalary()
    Max = sql.getMaxSalary()
    Min = sql.getMinSalary()
    return render_template('index.html', num=num, avg=avg, Max=Max, Min=Min)


'''Java'''


@app.route('/javaGetEdu')
@cache.cached(timeout=timeout)
def javaGetEdu():
    sql = mysql.MySql()
    edu = sql.javaGetEdu()
    return edu


@app.route('/javaGetExp')
@cache.cached(timeout=timeout)
def javaGetExp():
    sql = mysql.MySql()
    exp = sql.javaGetExp()
    return exp


@app.route('/javaGetEduForSalary')
@cache.cached(timeout=timeout)
def javaGetEduForSalary():
    sql = mysql.MySql()
    salary = sql.javaGetEduForSalary()
    return salary


@app.route('/javaGetExpForSalary')
@cache.cached(timeout=timeout)
def javaGetExpForSalary():
    sql = mysql.MySql()
    salary = sql.javaGetExpForSalary()
    return salary


@app.route('/javaRadar')
@cache.cached(timeout=timeout)
def javaRadar():
    sql = mysql.MySql()
    radar = sql.javaRadar()
    return radar


@app.route('/java.html')
@cache.cached(timeout=timeout)
def java():
    wc = cloud.Cloud()
    wc.javaSkillCloud()
    sql = mysql.MySql()
    num = sql.javaGetNum()
    avg = sql.javaGetAvgSalary()
    Max = sql.javaGetMaxSalary()
    Min = sql.javaGetMinSalary()
    return render_template('java.html', num=num, avg=avg, Max=Max, Min=Min)


'''python'''


@app.route('/pythonGetEdu')
@cache.cached(timeout=timeout)
def pythonGetEdu():
    sql = mysql.MySql()
    edu = sql.pythonGetEdu()
    return edu


@app.route('/pythonGetExp')
@cache.cached(timeout=timeout)
def pythonGetExp():
    sql = mysql.MySql()
    exp = sql.pythonGetExp()
    return exp


@app.route('/pythonGetEduForSalary')
@cache.cached(timeout=timeout)
def pythonGetEduForSalary():
    sql = mysql.MySql()
    salary = sql.pythonGetEduForSalary()
    return salary


@app.route('/pythonGetExpForSalary')
@cache.cached(timeout=timeout)
def pythonGetExpForSalary():
    sql = mysql.MySql()
    salary = sql.pythonGetExpForSalary()
    return salary


@app.route('/pythonRadar')
@cache.cached(timeout=timeout)
def pythonRadar():
    sql = mysql.MySql()
    radar = sql.pythonRadar()
    return radar


@app.route('/python.html')
@cache.cached(timeout=timeout)
def python():
    wc = cloud.Cloud()
    wc.pythonSkillCloud()
    sql = mysql.MySql()
    num = sql.pythonGetNum()
    avg = sql.pythonGetAvgSalary()
    Max = sql.pythonGetMaxSalary()
    Min = sql.pythonGetMinSalary()
    return render_template('python.html', num=num, avg=avg, Max=Max, Min=Min)


'''c'''


@app.route('/cGetEdu')
@cache.cached(timeout=timeout)
def cGetEdu():
    sql = mysql.MySql()
    edu = sql.cGetEdu()
    return edu


@app.route('/cGetExp')
@cache.cached(timeout=timeout)
def cGetExp():
    sql = mysql.MySql()
    exp = sql.cGetExp()
    return exp


@app.route('/cGetEduForSalary')
@cache.cached(timeout=timeout)
def cGetEduForSalary():
    sql = mysql.MySql()
    salary = sql.cGetEduForSalary()
    return salary


@app.route('/cGetExpForSalary')
@cache.cached(timeout=timeout)
def cGetExpForSalary():
    sql = mysql.MySql()
    salary = sql.cGetExpForSalary()
    return salary


@app.route('/cRadar')
@cache.cached(timeout=timeout)
def cRadar():
    sql = mysql.MySql()
    radar = sql.cRadar()
    return radar


@app.route('/c.html')
@cache.cached(timeout=timeout)
def c():
    wc = cloud.Cloud()
    wc.cSkillCloud()
    sql = mysql.MySql()
    num = sql.cGetNum()
    avg = sql.cGetAvgSalary()
    Max = sql.cGetMaxSalary()
    Min = sql.cGetMinSalary()
    return render_template('c.html', num=num, avg=avg, Max=Max, Min=Min)


'''c23'''


@app.route('/c23GetEdu')
@cache.cached(timeout=timeout)
def c23GetEdu():
    sql = mysql.MySql()
    edu = sql.c23GetEdu()
    return edu


@app.route('/c23GetExp')
@cache.cached(timeout=timeout)
def c23GetExp():
    sql = mysql.MySql()
    exp = sql.c23GetExp()
    return exp


@app.route('/c23GetEduForSalary')
@cache.cached(timeout=timeout)
def c23GetEduForSalary():
    sql = mysql.MySql()
    salary = sql.c23GetEduForSalary()
    return salary


@app.route('/c23GetExpForSalary')
@cache.cached(timeout=timeout)
def c23GetExpForSalary():
    sql = mysql.MySql()
    salary = sql.c23GetExpForSalary()
    return salary


@app.route('/c23Radar')
@cache.cached(timeout=timeout)
def c23Radar():
    sql = mysql.MySql()
    radar = sql.c23Radar()
    return radar


@app.route('/c23.html')
@cache.cached(timeout=timeout)
def c23():
    wc = cloud.Cloud()
    wc.c23SkillCloud()
    sql = mysql.MySql()
    num = sql.c23GetNum()
    avg = sql.c23GetAvgSalary()
    Max = sql.c23GetMaxSalary()
    Min = sql.c23GetMinSalary()
    return render_template('c23.html', num=num, avg=avg, Max=Max, Min=Min)


'''u3dUe'''


@app.route('/u3dUeGetEdu')
@cache.cached(timeout=timeout)
def u3dUeGetEdu():
    sql = mysql.MySql()
    edu = sql.u3dUeGetEdu()
    return edu


@app.route('/u3dUeGetExp')
@cache.cached(timeout=timeout)
def u3dUeGetExp():
    sql = mysql.MySql()
    exp = sql.u3dUeGetExp()
    return exp


@app.route('/u3dUeGetEduForSalary')
@cache.cached(timeout=timeout)
def u3dUeGetEduForSalary():
    sql = mysql.MySql()
    salary = sql.u3dUeGetEduForSalary()
    return salary


@app.route('/u3dUeGetExpForSalary')
@cache.cached(timeout=timeout)
def u3dUeGetExpForSalary():
    sql = mysql.MySql()
    salary = sql.u3dUeGetExpForSalary()
    return salary


@app.route('/u3dUeRadar')
@cache.cached(timeout=timeout)
def u3dUeRadar():
    sql = mysql.MySql()
    radar = sql.u3dUeRadar()
    return radar


@app.route('/u3d-ue.html')
@cache.cached(timeout=timeout)
def u3dUe():
    wc = cloud.Cloud()
    wc.u3dUeSkillCloud()
    sql = mysql.MySql()
    num = sql.u3dUeGetNum()
    avg = sql.u3dUeGetAvgSalary()
    Max = sql.u3dUeGetMaxSalary()
    Min = sql.u3dUeGetMinSalary()
    return render_template('u3d-ue.html', num=num, avg=avg, Max=Max, Min=Min)


'''php'''


@app.route('/phpGetEdu')
@cache.cached(timeout=timeout)
def phpGetEdu():
    sql = mysql.MySql()
    edu = sql.phpGetEdu()
    return edu


@app.route('/phpGetExp')
@cache.cached(timeout=timeout)
def phpGetExp():
    sql = mysql.MySql()
    exp = sql.phpGetExp()
    return exp


@app.route('/phpGetEduForSalary')
@cache.cached(timeout=timeout)
def phpGetEduForSalary():
    sql = mysql.MySql()
    salary = sql.phpGetEduForSalary()
    return salary


@app.route('/phpGetExpForSalary')
@cache.cached(timeout=timeout)
def phpGetExpForSalary():
    sql = mysql.MySql()
    salary = sql.phpGetExpForSalary()
    return salary


@app.route('/phpRadar')
@cache.cached(timeout=timeout)
def phpRadar():
    sql = mysql.MySql()
    radar = sql.phpRadar()
    return radar


@app.route('/php.html')
@cache.cached(timeout=timeout)
def php():
    wc = cloud.Cloud()
    wc.phpSkillCloud()
    sql = mysql.MySql()
    num = sql.phpGetNum()
    avg = sql.phpGetAvgSalary()
    Max = sql.phpGetMaxSalary()
    Min = sql.phpGetMinSalary()
    return render_template('php.html', num=num, avg=avg, Max=Max, Min=Min)


'''web'''


@app.route('/webGetEdu')
@cache.cached(timeout=timeout)
def webGetEdu():
    sql = mysql.MySql()
    edu = sql.webGetEdu()
    return edu


@app.route('/webGetExp')
@cache.cached(timeout=timeout)
def webGetExp():
    sql = mysql.MySql()
    exp = sql.webGetExp()
    return exp


@app.route('/webGetEduForSalary')
@cache.cached(timeout=timeout)
def webGetEduForSalary():
    sql = mysql.MySql()
    salary = sql.webGetEduForSalary()
    return salary


@app.route('/webGetExpForSalary')
@cache.cached(timeout=timeout)
def webGetExpForSalary():
    sql = mysql.MySql()
    salary = sql.webGetExpForSalary()
    return salary


@app.route('/webRadar')
@cache.cached(timeout=timeout)
def webRadar():
    sql = mysql.MySql()
    radar = sql.webRadar()
    return radar


@app.route('/web.html')
@cache.cached(timeout=timeout)
def web():
    wc = cloud.Cloud()
    wc.webSkillCloud()
    sql = mysql.MySql()
    num = sql.webGetNum()
    avg = sql.webGetAvgSalary()
    Max = sql.webGetMaxSalary()
    Min = sql.webGetMinSalary()
    return render_template('web.html', num=num, avg=avg, Max=Max, Min=Min)


'''Android'''


@app.route('/AndroidGetEdu')
@cache.cached(timeout=timeout)
def AndroidGetEdu():
    sql = mysql.MySql()
    edu = sql.AndroidGetEdu()
    return edu


@app.route('/AndroidGetExp')
@cache.cached(timeout=timeout)
def AndroidGetExp():
    sql = mysql.MySql()
    exp = sql.AndroidGetExp()
    return exp


@app.route('/AndroidGetEduForSalary')
@cache.cached(timeout=timeout)
def AndroidGetEduForSalary():
    sql = mysql.MySql()
    salary = sql.AndroidGetEduForSalary()
    return salary


@app.route('/AndroidGetExpForSalary')
@cache.cached(timeout=timeout)
def AndroidGetExpForSalary():
    sql = mysql.MySql()
    salary = sql.AndroidGetExpForSalary()
    return salary


@app.route('/AndroidRadar')
@cache.cached(timeout=timeout)
def AndroidRadar():
    sql = mysql.MySql()
    radar = sql.AndroidRadar()
    return radar


@app.route('/android.html')
@cache.cached(timeout=timeout)
def Android():
    wc = cloud.Cloud()
    wc.AndroidSkillCloud()
    sql = mysql.MySql()
    num = sql.AndroidGetNum()
    avg = sql.AndroidGetAvgSalary()
    Max = sql.AndroidGetMaxSalary()
    Min = sql.AndroidGetMinSalary()
    return render_template('android.html', num=num, avg=avg, Max=Max, Min=Min)


'''ios'''


@app.route('/iosGetEdu')
@cache.cached(timeout=timeout)
def iosGetEdu():
    sql = mysql.MySql()
    edu = sql.iosGetEdu()
    return edu


@app.route('/iosGetExp')
@cache.cached(timeout=timeout)
def iosGetExp():
    sql = mysql.MySql()
    exp = sql.iosGetExp()
    return exp


@app.route('/iosGetEduForSalary')
@cache.cached(timeout=timeout)
def iosGetEduForSalary():
    sql = mysql.MySql()
    salary = sql.iosGetEduForSalary()
    return salary


@app.route('/iosGetExpForSalary')
@cache.cached(timeout=timeout)
def iosGetExpForSalary():
    sql = mysql.MySql()
    salary = sql.iosGetExpForSalary()
    return salary


@app.route('/iosRadar')
@cache.cached(timeout=timeout)
def iosRadar():
    sql = mysql.MySql()
    radar = sql.iosRadar()
    return radar


@app.route('/ios.html')
@cache.cached(timeout=timeout)
def ios():
    wc = cloud.Cloud()
    wc.iosSkillCloud()
    sql = mysql.MySql()
    num = sql.iosGetNum()
    avg = sql.iosGetAvgSalary()
    Max = sql.iosGetMaxSalary()
    Min = sql.iosGetMinSalary()
    return render_template('ios.html', num=num, avg=avg, Max=Max, Min=Min)


'''algorithm'''


@app.route('/algorithmGetEdu')
@cache.cached(timeout=timeout)
def algorithmGetEdu():
    sql = mysql.MySql()
    edu = sql.algorithmGetEdu()
    return edu


@app.route('/algorithmGetExp')
@cache.cached(timeout=timeout)
def algorithmGetExp():
    sql = mysql.MySql()
    exp = sql.algorithmGetExp()
    return exp


@app.route('/algorithmGetEduForSalary')
@cache.cached(timeout=timeout)
def algorithmGetEduForSalary():
    sql = mysql.MySql()
    salary = sql.algorithmGetEduForSalary()
    return salary


@app.route('/algorithmGetExpForSalary')
@cache.cached(timeout=timeout)
def algorithmGetExpForSalary():
    sql = mysql.MySql()
    salary = sql.algorithmGetExpForSalary()
    return salary


@app.route('/algorithmRadar')
@cache.cached(timeout=timeout)
def algorithmRadar():
    sql = mysql.MySql()
    radar = sql.algorithmRadar()
    return radar


@app.route('/algorithm.html')
@cache.cached(timeout=timeout)
def algorithm():
    wc = cloud.Cloud()
    wc.algorithmSkillCloud()
    sql = mysql.MySql()
    num = sql.algorithmGetNum()
    avg = sql.algorithmGetAvgSalary()
    Max = sql.algorithmGetMaxSalary()
    Min = sql.algorithmGetMinSalary()
    return render_template('algorithm.html', num=num, avg=avg, Max=Max, Min=Min)


'''test'''


@app.route('/testGetEdu')
@cache.cached(timeout=timeout)
def testGetEdu():
    sql = mysql.MySql()
    edu = sql.testGetEdu()
    return edu


@app.route('/testGetExp')
@cache.cached(timeout=timeout)
def testGetExp():
    sql = mysql.MySql()
    exp = sql.testGetExp()
    return exp


@app.route('/testGetEduForSalary')
@cache.cached(timeout=timeout)
def testGetEduForSalary():
    sql = mysql.MySql()
    salary = sql.testGetEduForSalary()
    return salary


@app.route('/testGetExpForSalary')
@cache.cached(timeout=timeout)
def testGetExpForSalary():
    sql = mysql.MySql()
    salary = sql.testGetExpForSalary()
    return salary


@app.route('/testRadar')
@cache.cached(timeout=timeout)
def testRadar():
    sql = mysql.MySql()
    radar = sql.testRadar()
    return radar


@app.route('/test.html')
@cache.cached(timeout=timeout)
def test():
    wc = cloud.Cloud()
    wc.testSkillCloud()
    sql = mysql.MySql()
    num = sql.testGetNum()
    avg = sql.testGetAvgSalary()
    Max = sql.testGetMaxSalary()
    Min = sql.testGetMinSalary()
    return render_template('test.html', num=num, avg=avg, Max=Max, Min=Min)


'''oam'''


@app.route('/oamGetEdu')
@cache.cached(timeout=timeout)
def oamGetEdu():
    sql = mysql.MySql()
    edu = sql.oamGetEdu()
    return edu


@app.route('/oamGetExp')
@cache.cached(timeout=timeout)
def oamGetExp():
    sql = mysql.MySql()
    exp = sql.oamGetExp()
    return exp


@app.route('/oamGetEduForSalary')
@cache.cached(timeout=timeout)
def oamGetEduForSalary():
    sql = mysql.MySql()
    salary = sql.oamGetEduForSalary()
    return salary


@app.route('/oamGetExpForSalary')
@cache.cached(timeout=timeout)
def oamGetExpForSalary():
    sql = mysql.MySql()
    salary = sql.oamGetExpForSalary()
    return salary


@app.route('/oamRadar')
@cache.cached(timeout=timeout)
def oamRadar():
    sql = mysql.MySql()
    radar = sql.oamRadar()
    return radar


@app.route('/oam.html')
@cache.cached(timeout=timeout)
def oam():
    wc = cloud.Cloud()
    wc.oamSkillCloud()
    sql = mysql.MySql()
    num = sql.oamGetNum()
    avg = sql.oamGetAvgSalary()
    Max = sql.oamGetMaxSalary()
    Min = sql.oamGetMinSalary()
    return render_template('oam.html', num=num, avg=avg, Max=Max, Min=Min)


'''匹配'''


@app.route('/job-speculate.html', methods=['GET', 'POST'])
def job_speculate():
    return render_template('job-speculate.html')


@app.route('/job-submit', methods=['GET', 'POST'])
def job_submit():
    if request.method == 'POST':
        city = request.form.get('city')
        area = request.form.get('area')
        job = request.form.get('job')
        priority = request.form.get('priority')
        salary = float(request.form.get('salary'))
        education = request.form.get('education')
        experience = request.form.get('experience')
        skill = request.form.get('skill')
        skill_list = skill.split(' ')
        mc = match.Match()
        job_data = mc.jobMach(lan=job, city=city, area=area, priority=priority, education=education,
                              experience=experience, skill=skill_list, salary=salary)
        if job_data is not None and job_data is not False:
            city_data = job_data['city']
            area_data = job_data['area']
            name_data = job_data['name']
            detail_data = job_data['detail']
            scale_data = job_data['scale']
            company_data = job_data['company']
            label_data = job_data['label']
            edu_data = job_data['education']
            exp_data = job_data['experience']
            salary_data = str(int(job_data['avg_salary']))
            skill_data = job_data['skill']
            welfare_data = job_data['welfare']
            return render_template('match-result.html', name=name_data, job=job, company=company_data,
                                   label=label_data, scale=scale_data, city=city_data, area=area_data,
                                   detail=detail_data, edu=edu_data, exp=exp_data, salary=salary_data,
                                   skill=skill_data, welfare=welfare_data)
        else:
            return render_template('match-result.html')
    else:
        return render_template("404.html")


@app.route('/salary-speculate.html')
def salary_speculate():
    return render_template('salary-speculate.html')

@app.route('/salary-submit', methods=['GET', 'POST'])
def salary_submit():
    if request.method == 'POST':
        city = request.form.get('city')
        area = request.form.get('area')
        job = request.form.get('job')
        scale = request.form.get('scale')
        name = request.form.get('name')
        education = request.form.get('education')
        experience = request.form.get('experience')
        skill = request.form.get('skill')
        skill_list = skill.split(' ')

        sp = speculate.Speculate()
        result = sp.salarySpeculate(city=city, area=area, lan=job, scale=scale, name=name, education=education,
                                    experience=experience, skill=skill_list)
        if result is not None and result != 0:
            up = str(int((result + 1000) / 1000)) + "K"
            low = str(int((result - 1000) / 1000))
            value = low + "~" + up + "¥/月"

            return render_template("speculate-result.html", value=value)
        else:
            return render_template("speculate-result.html", value="此条件无法估测")
    else:
        return render_template("404.html")

@app.route('/charts.html')
@cache.cached(timeout=timeout)
def charts():
    return render_template("charts.html")


@app.route('/cards.html')
@cache.cached(timeout=timeout)
def cards():
    return render_template("demo/cards.html")


@app.route('/forgot-password.html')
def forgotPassword():
    return render_template("forgot-password.html")


@app.route('/login.html')
def login():
    return render_template("login.html")


@app.route('/tables.html')
@cache.cached(timeout=timeout)
def tables():
    return render_template("tables.html")


@app.route('/register.html')
def register():
    return render_template("register.html")


@app.route('/404.html')
def error():
    return render_template("404.html")


if __name__ == '__main__':
    app.run(host='0.0.0.0', port=8080)



  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313
  • 314
  • 315
  • 316
  • 317
  • 318
  • 319
  • 320
  • 321
  • 322
  • 323
  • 324
  • 325
  • 326
  • 327
  • 328
  • 329
  • 330
  • 331
  • 332
  • 333
  • 334
  • 335
  • 336
  • 337
  • 338
  • 339
  • 340
  • 341
  • 342
  • 343
  • 344
  • 345
  • 346
  • 347
  • 348
  • 349
  • 350
  • 351
  • 352
  • 353
  • 354
  • 355
  • 356
  • 357
  • 358
  • 359
  • 360
  • 361
  • 362
  • 363
  • 364
  • 365
  • 366
  • 367
  • 368
  • 369
  • 370
  • 371
  • 372
  • 373
  • 374
  • 375
  • 376
  • 377
  • 378
  • 379
  • 380
  • 381
  • 382
  • 383
  • 384
  • 385
  • 386
  • 387
  • 388
  • 389
  • 390
  • 391
  • 392
  • 393
  • 394
  • 395
  • 396
  • 397
  • 398
  • 399
  • 400
  • 401
  • 402
  • 403
  • 404
  • 405
  • 406
  • 407
  • 408
  • 409
  • 410
  • 411
  • 412
  • 413
  • 414
  • 415
  • 416
  • 417
  • 418
  • 419
  • 420
  • 421
  • 422
  • 423
  • 424
  • 425
  • 426
  • 427
  • 428
  • 429
  • 430
  • 431
  • 432
  • 433
  • 434
  • 435
  • 436
  • 437
  • 438
  • 439
  • 440
  • 441
  • 442
  • 443
  • 444
  • 445
  • 446
  • 447
  • 448
  • 449
  • 450
  • 451
  • 452
  • 453
  • 454
  • 455
  • 456
  • 457
  • 458
  • 459
  • 460
  • 461
  • 462
  • 463
  • 464
  • 465
  • 466
  • 467
  • 468
  • 469
  • 470
  • 471
  • 472
  • 473
  • 474
  • 475
  • 476
  • 477
  • 478
  • 479
  • 480
  • 481
  • 482
  • 483
  • 484
  • 485
  • 486
  • 487
  • 488
  • 489
  • 490
  • 491
  • 492
  • 493
  • 494
  • 495
  • 496
  • 497
  • 498
  • 499
  • 500
  • 501
  • 502
  • 503
  • 504
  • 505
  • 506
  • 507
  • 508
  • 509
  • 510
  • 511
  • 512
  • 513
  • 514
  • 515
  • 516
  • 517
  • 518
  • 519
  • 520
  • 521
  • 522
  • 523
  • 524
  • 525
  • 526
  • 527
  • 528
  • 529
  • 530
  • 531
  • 532
  • 533
  • 534
  • 535
  • 536
  • 537
  • 538
  • 539
  • 540
  • 541
  • 542
  • 543
  • 544
  • 545
  • 546
  • 547
  • 548
  • 549
  • 550
  • 551
  • 552
  • 553
  • 554
  • 555
  • 556
  • 557
  • 558
  • 559
  • 560
  • 561
  • 562
  • 563
  • 564
  • 565
  • 566
  • 567
  • 568
  • 569
  • 570
  • 571
  • 572
  • 573
  • 574
  • 575
  • 576
  • 577
  • 578
  • 579
  • 580
  • 581
  • 582
  • 583
  • 584
  • 585
  • 586
  • 587
  • 588
  • 589
  • 590
  • 591
  • 592
  • 593
  • 594
  • 595
  • 596
  • 597
  • 598
  • 599
  • 600
  • 601
  • 602
  • 603
  • 604
  • 605
  • 606
  • 607
  • 608
  • 609
  • 610
  • 611
  • 612
  • 613
  • 614
  • 615
  • 616
  • 617
  • 618
  • 619
  • 620
  • 621
  • 622
  • 623
  • 624
  • 625
  • 626
  • 627
  • 628
  • 629
  • 630
  • 631
  • 632
  • 633
  • 634
  • 635
  • 636
  • 637
  • 638
  • 639
  • 640
  • 641
  • 642
  • 643
  • 644
  • 645
  • 646
  • 647
  • 648
  • 649
  • 650
  • 651
  • 652
  • 653
  • 654
  • 655
  • 656
  • 657
  • 658
  • 659
  • 660
  • 661
  • 662
  • 663
  • 664
  • 665
  • 666
  • 667
  • 668
  • 669
  • 670
  • 671
  • 672
  • 673
  • 674
  • 675
  • 676
  • 677
  • 678
  • 679
  • 680
  • 681
  • 682
  • 683
  • 684
  • 685
  • 686
  • 687
  • 688
  • 689
  • 690
  • 691
  • 692
  • 693
  • 694
  • 695
  • 696
  • 697
  • 698
  • 699
  • 700
  • 701
  • 702
  • 703
  • 704
  • 705
  • 706
  • 707
  • 708
  • 709
  • 710
  • 711
  • 712
  • 713
  • 714
  • 715
  • 716
  • 717
  • 718
  • 719
  • 720
  • 721
  • 722
  • 723
  • 724
  • 725
  • 726
  • 727
  • 728
  • 729
  • 730
  • 731
  • 732
  • 733
  • 734
  • 735
  • 736
  • 737
  • 738
  • 739
  • 740
  • 741
  • 742
  • 743
  • 744
  • 745
  • 746
  • 747
  • 748
  • 749
  • 750
  • 751
  • 752
  • 753
  • 754
  • 755
  • 756
  • 757
  • 758
  • 759
  • 760
  • 761
  • 762
  • 763
  • 764
  • 765
  • 766
  • 767
  • 768
  • 769
  • 770
  • 771
  • 772
  • 773
  • 774
  • 775
  • 776
  • 777
  • 778
  • 779
  • 780
  • 781
  • 782
  • 783
  • 784
  • 785
  • 786
  • 787
  • 788
  • 789
  • 790
  • 791
  • 792
  • 793
  • 794
  • 795
  • 796
  • 797
  • 798
  • 799
  • 800
  • 801
  • 802
  • 803
  • 804
  • 805
  • 806
  • 807
  • 808
  • 809
  • 810
  • 811
  • 812
  • 813
  • 814
  • 815
  • 816
  • 817
  • 818
  • 819
  • 820
  • 821
  • 822
  • 823
  • 824
  • 825
  • 826
  • 827
  • 828
  • 829
  • 830
  • 831
  • 832
  • 833
  • 834
  • 835
  • 836
  • 837
  • 838
  • 839
  • 840
  • 841
  • 842
  • 843
  • 844
  • 845
  • 846
  • 847
  • 848
  • 849
  • 850
  • 851
  • 852
  • 853
  • 854
  • 855
  • 856
  • 857
  • 858
  • 859
  • 860
  • 861
  • 862
  • 863
  • 864
  • 865
  • 866
  • 867
  • 868
  • 869
  • 870
  • 871
  • 872
  • 873
  • 874
  • 875
  • 876
  • 877
  • 878
  • 879
  • 880
  • 881
  • 882
  • 883
  • 884
  • 885
  • 886
  • 887
  • 888
  • 889
  • 890
  • 891
  • 892
  • 893
  • 894
  • 895
  • 896
  • 897
  • 898
  • 899
  • 900
  • 901
  • 902
  • 903
  • 904
  • 905
  • 906
  • 907
  • 908
  • 909
  • 910
  • 911
  • 912
  • 913
  • 914

源码获取:

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/822018
推荐阅读
相关标签