Git Product home page Git Product logo

Comments (1)

nintha avatar nintha commented on September 26, 2024

字段裁剪的具体实现

裁剪前字段可参考README中的API描述,裁剪后字段如下所示

{
    "_id": "5a9562fc2dc6292efc10853c", // mongo主键
    "mid": 1001, //用户ID
    "name": "ART",//用户昵称
    "fans": 4,//粉丝数
    "friend": 34,//好友数
    "sign": "",//个性签名
    "archive_count": 0,//投稿数
    "sex": 0,//性别,0-男,1-女,2-保密
    "face": "7695bcb74e09b2432dc0d483752cac49c94c1aae.jpg",
                      //头像,使用时需要加上前缀“http://i1.hdslb.com/bfs/face/”,空为默认头像
    "attentions": "3334179,11336264", //关注的用户
    "exp": 14550, //经验值,该字段已经无效,2018.4.15发现API已经不再提供该信息
    "level": 2// 等级
}

每条记录平均大小从裁剪前的963B到裁剪后的450B,有效减少了一半大小,预计采集完成后,所有数据所需空间在45G左右。

from bilispider.

Related Issues (7)

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.