GithubHelp home page GithubHelp logo

xmg520 / spider-college Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rafael-luo/spider-college

0.0 1.0 0.0 266 KB

:bug:爬取全国高校的基本信息以及高考录取分数线

License: MIT License

Python 100.00%

spider-college's Introduction

spider-college

目前已爬取2651条高校基本信息,31个城市的199条历年高考分数线,

使用事项

在爬去全国高校基本信息时,会出现重复的数据,请执行下面的删除重复记录sql语句进行排除。

删除重复记录值

DELETE
FROM
    college
WHERE
    name IN (
    SELECT name FROM (
        SELECT
            name
        FROM
            college
        GROUP BY
            name
        HAVING
            COUNT(id) > 1
    ) AS tab1
    )
AND id NOT IN (
    SELECT id FROM (
        SELECT
        MIN(id) AS id 
        FROM
        college
        GROUP BY
        name
        HAVING
        COUNT(id) > 1
    ) AS tab2
)

数据库MySQL操作

SELECT * FROM score where city = '河南'    
SELECT * FROM college where name = '四川文理学院'
SELECT s.category,s.score_line,s.score_list FROM city c,score s  WHERE s.city=c.name and s.city = '河南'

spider-college's People

Contributors

isliqian avatar

Watchers

James Cloos 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.