|
1 | 1 | # github |
2 | 2 | ###githubFollowXXList 模块: |
3 | 3 |
|
| 4 | + - ``` |
| 5 | +count(Tag): |
4 | 6 | ``` |
| 7 | + |
| 8 | + **Tag**:传入一个tag对象例如 |
| 9 | + 然后返回此tag下的人数,(出现k时候会有误差) |
| 10 | + |
| 11 | + 方法返回获取当前tag下的人数 |
| 12 | + |
| 13 | + - ``` |
5 | 14 | get_follow_counts_pages(url,person,boo): |
6 | 15 | ``` |
7 | 16 |
|
8 | | -**url**就是github的网址:'https://github.com/'; |
| 17 | + **url**就是github的网址:'https://github.com/' |
9 | 18 |
|
10 | | -**person**是想要获取用户的username; |
| 19 | + **person**是想要获取用户的username; |
11 | 20 |
|
12 | | -**boo**是一个布尔值,若是真,则获取following,若是假,则获取followers |
| 21 | + **boo**是一个布尔值,若是真,则获取following,若是假,则获取followers |
13 | 22 |
|
14 | | -可以获取当前人物的获取following或者followers的页数 |
| 23 | + 方法返回获取当前人物的获取following或者followers的页数 |
15 | 24 |
|
16 | | -``` |
| 25 | + |
| 26 | + |
| 27 | + - ``` |
17 | 28 | get_follow_lists(url,person,boo,pages): |
18 | 29 | ``` |
19 | 30 |
|
20 | | -**url**, **person** ,**boo**和上一个方法一样,**pages**是指想获取第几页的following或者followers的列表 |
| 31 | + **url**, **person** ,**boo**和上一个方法一样, |
| 32 | + **pages**是指想获取第几页的following或者followers的列表 |
21 | 33 |
|
22 | | -方法返回当前page的following或者followers的列表,结合*get_follow_counts_pages*结合可以获取所以的following或者followers的列表 |
| 34 | + 方法返回当前page的following或者followers的列表,结合*get_follow_counts_pages*结合可以获取所有page的following或者followers的列表 |
23 | 35 |
|
24 | 36 |
|
25 | 37 | ###githubUserInfo 模块: |
26 | 38 |
|
27 | | -``` |
| 39 | + - ``` |
28 | 40 | get_user_info(url,person): |
29 | 41 | ``` |
30 | | -获取用户的全称,介绍,项目个数,关注人数,粉丝人数,送出多少star, |
31 | | - |
32 | | -并返回一个字典,包含这些信息 |
| 42 | + 返回一个字典:包含用户的全称,个人介绍,项目个数,关注人数,粉丝人数,共送出多少star, |
| 43 | + |
0 commit comments