Giter Site home page Giter Site logo

boss_post's Introduction

Boss-Post

介绍

使用selenium自动化获取Boss直聘的首页互联网/AI标签的数据并遍历点击获取岗位详细信息保存数据库

使用

1、安装依赖

pip install -r requirements.txt

2、Boss文件夹下Boss.py修改main()

conn = pymysql.connect(host='127.0.0.1', user='root', password='798lhh', database='BossDB')
字段 含义 更改
user 账号 自己数据库账号
password 密码 自己数据库密码
database 数据库名称 自己数据库名称

3、在135行找到下面sql,然后修改post, post是表名,改为你自己的

sql = '''insert into post(category, sub_category,job_title,province,job_location,job_company,job_industry,job_finance,job_scale,job_welfare,job_salary_range,job_experience,job_education,job_skills,create_time) values(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)'''

4、SQL语句创建

create database BossDB;
use BossDB;

create table BossDB.post
(
    category         varchar(255) null ,
    sub_category     varchar(255) null ,
    job_title        varchar(255) null ,
    province         varchar(100) null ,
    job_location     varchar(255) null ,
    job_company      varchar(255) null ,
    job_industry     varchar(255) null ,
    job_finance      varchar(255) null ,
    job_scale        varchar(255) null ,
    job_welfare      varchar(255) null ,
    job_salary_range varchar(255) null ,
    job_experience   varchar(255) null ,
    job_education    varchar(255) null ,
    job_skills       varchar(255) null ,
    create_time      varchar(50)  null 
);

boss_post's People

Contributors

liangjuyao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.