腾讯漫画解析

https://github.com/abcfy2/getComic
https://github.com/lossme/TencentComicBook
——————————————————————————————————————————————————————————————————————————————————
# 基本上所需要的元素都在搜索首页 http://ac.qq.com/Comic 了,默认按照更新时间排序,索引为 1;
# 接着按照 http://ac.qq.com/Comic/all/search/time/page/1 来进行时间索引拉取;
curl -s http://ac.qq.com/Comic -o index
# tagList 变量里面存储着标签类别和对应的数字字典
grep 'var tagList' index
# 这三个变量里面存储着总漫画数,分页漫画数量,当前分页索引
grep 'var (totalNum|pageIndex|pageSize)' index
# 通过 ul class="ret-search-list clearfix 关键字来得到当前分页的所有漫画的详细信息;
tr -d '\n\r\t' < index | grep -P -o '

    .*?
' | sed 's/> +</>\n</g'
——————————————————————————————————————————————————————————————————————————————————

猜你喜欢

转载自www.cnblogs.com/ilinunix/p/9399142.html
今日推荐