Skip to content

对函数extractBlogLists改进的一些想法 #2

@robot527

Description

@robot527

extractBlogLists 函数中for循环默认执行1000次,对于文章少的用户需要等的时间太长,对于文章超多的用户遍历不完所有文章,建议先从 http://blog.csdn.net/user_name 页面计算出用户文章总数。
页面左边个人资料版块有信息 “ 原创:a篇 转载:b篇 译文:c篇”, 文章总数就为 (a + b + c)。然后计算确定 for 循环次数,比如设为 (a + b + c + 50),这样就能解决上述问题。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions