在学习jsoup与redis时写的一个zhihu爬虫玩具,自己已经爬取了45万条用户数据,2300多万条用户关系数据
- 执行项目跟路径下database.sql内三条语句,建立库与表
- 将src/main/resources/eql/路径内eql-DEFAULT.properties中的user与password设置为自己数据库的
- 启动redis(默认端口号)
- 启动src/main/java/main/Boom.java
- 程序中所谓“种子模式”即清空所有数据重新爬取
- 关于程序中所谓“短链接”。如某人主页url为www.zhihu.com/people/li-shao-quan-18,那么li-shao-quan-18即为他的短链接
-
src/main/java/ZhihuUtil.java为程序第一版本 那时还是把所有东西扔进一个类里的菜比。
-
更多介绍参见我的博客 cabeza.cn
Ezra Weston Loomis Pound (30 October 1885 – 1 November 1972) was an expatriate American poet and critic who was a major figure in the early modernist movement. His contribution to poetry began with his development of Imagism, a movement derived from classical Chinese and Japanese poetry, stressing clarity, precision and economy of language. His best-known works include Ripostes (1912), Hugh Selwyn Mauberley (1920) and the unfinished 120-section epic, The Cantos (1917–69).
The apparition of these faces in the crowd
Petals on a wet, black bough
----------In a Station of the Metro
人群中那些面孔的骤然显现
湿漉漉、黑黝黝的树枝上的花瓣
-----------《在地铁车站》