forked from luyishisi/Anti-Anti-Spider
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# 百家号采集 | ||
## BUG | ||
* 由于使用PhantomJS效率太低 | ||
* 代码风格问题,有些地方的代码太长不符合PEP8 | ||
* 通过get_url.py爬取两天获得50万URL | ||
* 但是获取id时服务器跑了一星期了才获得4万可用的ID(百家号作者) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
lll = set() | ||
with open('appid.txt','r') as idfile: | ||
for appid in idfile.readlines(): | ||
lll.add(appid) | ||
idfile.close() | ||
print(len(lll)) | ||
with open('sortid.txt','w') as idfile: | ||
for appid in lll: | ||
idfile.write(appid) | ||
idfile.write('\n') | ||
idfile.close() |