Giter Club home page Giter Club logo

ec-spider's Introduction

Unofficial-API_for_Crawling

#声明: 该源码仅为学习交流使用,不用于商业用途,如有侵权问题

请及时联系[email protected](Q:304695350)撤销全部代码

##介绍:

文件名:get_jd.py

用途:非官方-京东商品爬虫API(包括价格、评论等),评分在评价的返回页面里有,销量暂时无法抓取。

抓取所有评论页耗费时间:

Python2 :3.19 s

Python3 :4.21 s

函数说明:

get_jd_rate:根据商品ID与页码获得评论页面的源代码,后续解析工作暂时不做了,就是解析Json

get_jd_rate_totalpagenum:根据商品ID得到评论页码范围,返回值是整型数字,最大页码-1,因为从0开始

get_jd_rate_all:根据商品ID抓取所有评论,返回结果是按顺序存放页面源码的列表

get_jd_price:根据商品ID抓取价格,这个速度最快,而且从来不会封IP

######modifie:2014-11-09 11:23:36

ec-spider's People

Contributors

clericpy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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