码迷,mamicode.com
首页 > 其他好文 > 详细

腾讯漫画解析

时间:2018-08-01 11:50:33      阅读:2809      评论:0      收藏:0      [点我收藏+]

标签:dex   需要   cbo   ref   tps   通过   tag   ota   tco   

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‘
——————————————————————————————————————————————————————————————————————————————————

腾讯漫画解析

标签:dex   需要   cbo   ref   tps   通过   tag   ota   tco   

原文地址:https://www.cnblogs.com/ilinunix/p/9399142.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!