Code Monkey home page Code Monkey logo

kechenggezi-spider's Introduction

kechenggezi-Spider

第一次写爬虫,爬课程格子的校花榜,比较简陋,没用多线程。


使用说明

修改主程序里的token和图片保存位置,运行

python xhspider.py

保存的list.txt是代表编号,名字,票数。

本来是用名字作为图片的名字,但存在重名和一些细节上的bug,所以换成了这种形式。

本程序仅供学习参考,请勿做违法的事情> <.也希望大家提出宝贵的意见让我改进。

以上。。。

以下功能需要 scrapy

爬取所有妹子的详细信息(多线程),保存文件为 jsonline 格式

scrapy crawl KcgzXh

下载所有妹子的图片(多线程)

mkdir images
scrapy crawl XhImage

关于不用多线程

记得在知乎上看到过一个回答,爬虫并不是压力测试,尽量让爬虫不会对服务器产生太大影响。所以我才没想添加多线程,可能这就是善良?╮(╯▽╰)╭

kechenggezi-spider's People

Contributors

xinqiu avatar nymphet 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.