Web Spider
2014-05-12 21:29:12 8 举报
Python_Web Spider_Designed by Leonie
作者其他创作
大纲/内容
Depth=1
Start
Len(URLs)0
Clear HTMLGet New_URLs
Clear New_URLs
Next_URLs = New_URLs + Next_URLs
Do printing
No
Open the URL
Clear HTML Get the article
All_URLs = All_URLs + New_URLs
Save the article as a file
First Url; Depth
End
Depth = Depth-1
Get HTML
URLs = Next_URLs
Yes
Len(URLs) = Len(URLs) - 1
All_URLs = [ ]
Next_URLs = [ ]
收藏
0 条评论
下一页