Skip to content

Commit f94963e

Browse files
committed
read me
1 parent 3706fcd commit f94963e

2 files changed

Lines changed: 32 additions & 30 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,5 @@ some python spiders with BeautifulSoup
33

44
## githubSpider
55

6-
###githubFollowXXList 模块:
6+
## 58同城Spider
77

8-
```
9-
get_follow_counts_pages(url,person,boo):
10-
```
11-
12-
**url**就是github的网址:'https://github.com/';
13-
14-
**person**是想要获取用户的username;
15-
16-
**boo**是一个布尔值,若是真,则获取following,若是假,则获取followers
17-
18-
可以获取当前人物的获取following或者followers的页数
19-
20-
```
21-
get_follow_lists(url,person,boo,pages):
22-
```
23-
24-
**url**, **person** ,**boo**和上一个方法一样,**pages**是指想获取第几页的following或者followers的列表
25-
26-
方法返回当前page的following或者followers的列表,结合*get_follow_counts_pages*结合可以获取所以的following或者followers的列表
27-
28-
29-
###githubUserInfo 模块:
30-
31-
```
32-
get_user_info(url,person):
33-
```
34-
获取用户的全称,介绍,项目个数,关注人数,粉丝人数,送出多少star,
35-
36-
并返回一个字典,包含这些信息

‎github/ReadMe.md‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,32 @@
11
# github
2+
###githubFollowXXList 模块:
3+
4+
```
5+
get_follow_counts_pages(url,person,boo):
6+
```
7+
8+
**url**就是github的网址:'https://github.com/';
9+
10+
**person**是想要获取用户的username;
11+
12+
**boo**是一个布尔值,若是真,则获取following,若是假,则获取followers
13+
14+
可以获取当前人物的获取following或者followers的页数
15+
16+
```
17+
get_follow_lists(url,person,boo,pages):
18+
```
19+
20+
**url**, **person** ,**boo**和上一个方法一样,**pages**是指想获取第几页的following或者followers的列表
21+
22+
方法返回当前page的following或者followers的列表,结合*get_follow_counts_pages*结合可以获取所以的following或者followers的列表
23+
24+
25+
###githubUserInfo 模块:
26+
27+
```
28+
get_user_info(url,person):
29+
```
30+
获取用户的全称,介绍,项目个数,关注人数,粉丝人数,送出多少star,
31+
32+
并返回一个字典,包含这些信息

0 commit comments

Comments
 (0)