Giter VIP home page Giter VIP logo

crawlmeituanarea's Introduction

获取各个城市的商圈数据

需要使用如下URL:

第一个链接是美团网用于选择切换城市时的页面,get_city.py脚本运行后会从该页面爬取全部城市的name和href

第二个链接就是美团网用于城市搜索的API,后面跟上城市名即可获得该城市的简写字母

第三个链接是某城市美团美食频道页面,其html源码中包含了该城市所有区县下的商圈数据,该链接的获得方法有两种:

1.从URL①中获得的href,拼接上 '/meishi/'

2.从URL②中获取城市简写字母,拼接上'.meituan.conm/meishi/'

请求https://hz.meituan.com/meishi/时,需在请求头上加入User-Agent信息,否则会默认跳转到"北京美团网"页面

crawlmeituanarea's People

Contributors

shicw 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.