下载源码
git clone https://github.com/yangyangwithgnu/hardseed.git
源码安装
1)唯一依赖 libcurl,请自行安装;
apt-get install libcurl3
#在Ubuntu下是需要安装 libcurl4-openssl-dev
apt-get install libcurl4-openssl-dev
2)代码采用 C++11 编写,gcc 版本不低于 4.7.1。
3)命令行下运行:
如果没有安装cmake,先安装cmake
apt-get install cmake
$ cd hardseed/build/
$ cmake .
$ make && make install
问题解决
- undefined reference to `libiconv
TARGET_LINK_LIBRARIES(hardseed curl pthread)
替换成
TARGET_LINK_LIBRARIES(hardseed curl pthread iconv)
种子下载
- 执行 hardseed
$ hardseed
执行完成后,你会看到 /[aicheng_asia_mosaicked][1128]@014822/,你要的都在那儿。或者,玩点高级的
- 指定路径下载
$ hardseed --saveas-path ~/downloads --topics-range 256 --av-class aicheng_west
其中,--saveas-path 指定存放路径为 ~/downloads/;--topics-range 指定解析的帖子范围从第 1 张帖子到第 256 张帖子;--av-class 指定女神类型为欧美