Jike Metro 🚇 中各个类的可用属性

In [1]:
from jike.objects import *

User 类可用的属性

In [2]:
for i in range(len(User._fields) // 5 + 1):
    print(User._fields[i*5:(i+1)*5])
('areaCode', 'avatarImage', 'backgroundImage', 'bio', 'birthday')
('briefIntro', 'city', 'country', 'following', 'gender')
('id', 'initUsername', 'isBetaUser', 'isLoginUser', 'isVerified')
('mobilePhoneNumber', 'preferences', 'province', 'profileImageUrl', 'ref')
('qqOpenId', 'screenName', 'updatedAt', 'userId', 'username')
('usernameSet', 'verifyMessage', 'wechatOpenId', 'weiboUid', 'weiboUserInfo')
('followedCount', 'followingCount', 'highlightedPersonalUpdates', 'liked', 'topicCreated')
('topicSubscribed',)

Topic 类可用的属性

In [3]:
for i in range(len(Topic._fields) // 5 + 1):
    print(Topic._fields[i*5:(i+1)*5])
('briefIntro', 'content', 'createdAt', 'enableForUserPost', 'enablePictureComments')
('friendsAlsoSubscribe', 'id', 'isAnonymous', 'isDreamTopic', 'isValid')
('keywords', 'lastMessagePostTime', 'likeIcon', 'maintainer', 'messagePrefix')
('newCategory', 'operateStatus', 'pictureUrl', 'rectanglePicture', 'ref')
('squarePicture', 'subscribedAt', 'subscribedStatusRawValue', 'subscribersCount', 'thumbnailUrl')
('timeForRank', 'topicId', 'topicType', 'updatedAt')

OfficialMessage 类可用的属性

In [4]:
for i in range(len(OfficialMessage._fields) // 5 + 1):
    print(OfficialMessage._fields[i*5:(i+1)*5])
('linkInfo', 'repostCount', 'user', 'collectedTime', 'likeInfo')
('topic', 'commentCount', 'read', 'isCommentForbidden', 'type')
('pictures', 'liked', 'likeIcon', 'collected', 'id')
('targetType', 'status', 'viewType', 'createdAt', 'target')
('likeCount', 'video', 'collectTime', 'abstract', 'content')
()

OriginalPost 类可用的属性

In [5]:
for i in range(len(OriginalPost._fields) // 5 + 1):
    print(OriginalPost._fields[i*5:(i+1)*5])
('linkInfo', 'repostCount', 'user', 'collectedTime', 'likeInfo')
('topic', 'poi', 'commentCount', 'read', 'messageId')
('isCommentForbidden', 'type', 'pictures', 'liked', 'likeIcon')
('collected', 'id', 'targetType', 'status', 'viewType')
('createdAt', 'target', 'likeCount', 'collectTime', 'content')
()

Repost 类可用的属性

In [6]:
for i in range(len(Repost._fields) // 5 + 1):
    print(Repost._fields[i*5:(i+1)*5])
('linkInfo', 'repostCount', 'user', 'collectedTime', 'likeInfo')
('topic', 'commentCount', 'read', 'isCommentForbidden', 'type')
('pictures', 'liked', 'likeIcon', 'collected', 'id')
('syncCommentId', 'targetType', 'status', 'replyToComment', 'viewType')
('createdAt', 'target', 'likeCount', 'collectTime', 'content')
()

Question 类可用的属性

In [7]:
for i in range(len(Question._fields) // 5 + 1):
    print(Question._fields[i*5:(i+1)*5])
('linkInfo', 'repostCount', 'user', 'collectedTime', 'likeInfo')
('topic', 'commentCount', 'read', 'isCommentForbidden', 'type')
('pictures', 'liked', 'likeIcon', 'collected', 'updatedAt')
('id', 'targetType', 'status', 'answerCount', 'viewType')
('createdAt', 'target', 'likeCount', 'collectTime', 'title')
('content',)

Answer 类可用的属性

In [8]:
for i in range(len(Answer._fields) // 5 + 1):
    print(Answer._fields[i*5:(i+1)*5])
('linkInfo', 'repostCount', 'user', 'collectedTime', 'likeInfo')
('topic', 'richtextContent', 'commentCount', 'read', 'questionId')
('isCommentForbidden', 'type', 'pictures', 'liked', 'voteTend')
('likeIcon', 'collected', 'id', 'targetType', 'status')
('upVoteCount', 'viewType', 'createdAt', 'target', 'likeCount')
('collectTime', 'question', 'content')

Comment 类可用的属性

In [9]:
for i in range(len(Comment._fields) // 5 + 1):
    print(Comment._fields[i*5:(i+1)*5])
('linkInfo', 'repostCount', 'user', 'replyCount', 'collectedTime')
('likeInfo', 'topic', 'level', 'commentCount', 'enablePictureComments')
('read', 'threadId', 'isCommentForbidden', 'type', 'pictures')
('liked', 'hotReplies', 'targetId', 'likeIcon', 'collected')
('id', 'targetType', 'status', 'viewType', 'createdAt')
('target', 'likeCount', 'collectTime', 'content')

PersonalUpdateSection 类可用的属性

In [10]:
for i in range(len(PersonalUpdateSection._fields) // 5 + 1):
    print(PersonalUpdateSection._fields[i*5:(i+1)*5])
('linkInfo', 'repostCount', 'user', 'collectedTime', 'likeInfo')
('topic', 'commentCount', 'read', 'isCommentForbidden', 'type')
('pictures', 'liked', 'items', 'likeIcon', 'collected')
('id', 'targetType', 'status', 'viewType', 'createdAt')
('target', 'likeCount', 'collectTime', 'content')

PersonalUpdate 类可用的属性

In [11]:
for i in range(len(PersonalUpdate._fields) // 5 + 1):
    print(PersonalUpdate._fields[i*5:(i+1)*5])
('linkInfo', 'topics', 'repostCount', 'user', 'targetUsers')
('collectedTime', 'likeInfo', 'topic', 'topicIds', 'usernames')
('commentCount', 'read', 'actionTime', 'isCommentForbidden', 'type')
('pictures', 'liked', 'users', 'likeIcon', 'collected')
('targetUsernames', 'action', 'id', 'targetType', 'status')
('viewType', 'createdAt', 'target', 'likeCount', 'collectTime')
('updateIds', 'content')