GithubHelp home page GithubHelp logo

laigaaming / bike-crawler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from derekhe/bike-crawler

0.0 2.0 0.0 26.87 MB

共享单车地图爬虫

Home Page: http://www.dancheditu.com

Python 95.48% Shell 0.02% Batchfile 0.01% CSS 0.01% C++ 1.32% C 1.43% Fortran 0.03% Smarty 0.01% HTML 1.72% PowerShell 0.01%

bike-crawler's Introduction

共享单车地图爬虫

感谢您的支持

由于摩拜单车和ofo不断的封杀各种爬虫行为,所以单车地图被迫关闭

此处的python代码可以用于学习用途,但已经无法使用

如果你还有问题交流可以加微信bcdata

该爬虫为单车地图的Python演示代码,具备以下功能:

  • 支持ofo和摩拜
  • 多线程爬取
  • 自动去重
  • 坐标系转换
  • 按照ofo和摩拜输出对应的csv文件,存放在db/【日期】/【日期】-【时间】-【品牌】.csv文件内
  • gzip压缩存储

运行环境

  • Python3
  • Linux/Mac/Windows

运行前请联系微信bcdata获取token,内置的token为演示用,单车位置是真实的,ID是随机的。

请根据你的需要修改配置文件config.ini,请查看内置说明。

Linux/Mac

  • 下载最新代码并解压
  • 修改config.ini确保坐标和区域等参数正确
  • 运行:
pip3 install -r requirements.txt
python3 crawler.py

Windows

  • 下载最新代码并解压
  • 修改config.ini确保坐标和区域等参数正确
  • 运行run.bat

输出格式

输出格式:CSV

每行格式:时间戳,单车编号,经度,纬度

常见问题,请见单车地图

bike-crawler's People

Contributors

derekhe avatar

Watchers

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