2 Star 1 Fork 0

OrangBus/scrapy-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
redis_start.py 6.05 KB
一键复制 编辑 原始数据 按行查看 历史
OrangBus 提交于 2021-11-03 16:32 . 11-3
from App.db import RedisModel
def tasks():
return [
{"key":"sanchongmen","value":"http://3chongmen.com"},
{"key":"xihuan","value":"https://www.59xihuan.cn"},
{"key":"haha56","value":"http://www.haha56.net/joke_top.htm"},
{"key":"cctv:start_urls","value":"http://ivi.bupt.edu.cn"},
{"key":"kaixin100:start_urls","value":"http://kaixin100.com"},
{"key":"xiaohuaji:start_urls","value":"http://mfj726.com"},
{"key":"hxqba_joke","value":"https://www.hxqba.com/"},
{"key":"kxxh_joke","value":"http://368m.com/"},
{"key":"wxiaohua_joke","value":"http://www.wxiaohua.com/"},
{"key":"wyl.cc","value":"http://wyl.cc"},
{"key":"xiaohuaji","value":"http://mfj726.com/"},
{"key":"xiaohuawo","value":"http://www.xiaohuawo.com/joke_top.htm"},
{"key":"xuexila_joke","value":"https://www.xuexila.com/duanzi/duanzijingxuan/"},
{"key":"zjzhangui","value":"http://www.zjzhangui.com"},
{"key":"shuoshuo_joke","value":"http://shuoshuo9.com"},
{"key":"shuoshuokong_joke","value":"http://shuoshuokong.com"},
{"key":"gexingshuo_joke","value":"http://gexingshuo.com/"},
{"key":"xiaogushi_joke","value":"http://xigushi.com/"},
{"key":"xiaole_joke","value":"http://xiaole8.com/"},
{"key":"juzidaquan_joke","value":"http://www.818rmb.com/"},
{"key":"guaze_joke","value":"http://guaze.com/"},
{"key":"guaze_joke","value":"http://guaze.com/"},
{"key":"rensheng5_joke","value":"http://rensheng4.com/"},
{"key":"yuludaquan_joke","value":"http://sjhtbj.com/"},
{"key":"pipixiawang_joke","value":"https://www.pipixiawang.com"},
{"key":"meiwen_joke","value":"http://meiwen.com.cn/"},
{"key":"yulujun_joke","value":"http://meiwen.com.cn/"},
# 7-29
{"key":"sayqing_joke","value":"http://sayqing.com/"},
{"key":"zuoyouming_joke","value":"http://zuoyouming.cc/"},
{"key":"shuoshuoyuan_joke","value":"http://cnteb.com/"},
{"key":"bueryulu_joke","value":"http://yulujun.com/"},
{"key":"smthq_joke","value":"http://smthq.com/"},
# 7-30
{"key":"woyaoshuoshuo_joke","value":"http://woyaoshuoshuo.com/"},
{"key":"lzttk_joke","value":"http://lzttk.com/"},
{"key":"baizhiniao_joke","value":"http://baizhiniao.cn/"},
{"key":"baizhiniao_yulu_joke","value":"http://baizhiniao.com/"},
{"key":"haiyangniao_joke","value":"http://haiyangniao.com/"},
{"key":"xmjxjn_joke","value":"http://xmjxjn.net/"},
{"key":"xmjxjn_joke","value":"http://erpuc.com/"},
{"key":"lzrsb_joke","value":"http://lzrsb.com/"},
{"key":"fflzw_joke","value":"http://fflzw.com/"},
{"key":"qinggangu_joke","value":"http://qinggangu.com/"},
{"key":"penhen_joke","value":"http://penhen.com/"},
{"key":"penhen_joke","value":"http://nichenggu.com/"},
{"key":"wencaigu_joke","value":"http://wencaigu.com/"},
{"key":"lunsui_joke","value":"http://lunsui.com/"},
{"key":"rijifan_joke","value":"http://rijifan.com/"},
{"key":"wwlzw_joke","value":"http://wwlzw.com/"},
{"key":"wenyugu_joke","value":"http://wenyugu.com/"},
{"key":"caimigu_joke","value":"http://caimigu.com/"},
{"key":"yiqig_joke","value":"http://www.yiqig.com/"},
# 7-31
{"key": "qingshumi_joke", "value": "http://www.qingshumi.com/"},
{"key": "aishuoshuo_joke", "value": "http://www.aishuoshuo.com/"},
{"key": "juzifang_joke", "value": "http://www.juzifang.com/"},
{"key": "juzifang_joke", "value": "http://www.shuoshuowenzi.com/"},
# {"key": "dedeniao_joke", "value": "http://www.dedeniao.cn/"},
# {"key":"tiankong_video:start_urls","value":"https://api.tiankongapi.com/api.php/provide/vod/?ac=videolist"},
{"key":"a7777688","value":"http://m.7777688.com/inc/api.php?ac=list"},
{"key":"apihjzy","value":"https://apihjzy.com/api.php/provide/vod/?ac=list"},
{"key":"jialiapi.com","value":"https://jialiapi.com/api.php/provide/vod/?ac=list"},
{"key":"paotai.com","value":"http://ptcj.ptzycj.com/api.php/provide/vod/?ac=list"},
{"key":"lbapi9.com","value":"https://lbapi9.com/api.php/provide/vod/at/json/?ac=list"},
{"key":"qiezizy8.com","value":"http://www.qiezizy8.com/api.php/provide/vod/?ac=list"},
{"key":"shayuapi.com","value":"https://shayuapi.com/api.php/provide/vod/?ac=list"},
{"key":"cjmygzy","value":"http://cjmygzy.com/inc/api.php?ac=list"},
{"key":"fqzy","value":"http://api.fqzy.cc/api.php/provide/vod/?ac=list"},
{"key":"sscj8","value":"http://sscj8.com/inc/jsonsapi.php?ac=list"},
{"key":"bttcj","value":"http://bttcj.com/inc/jsonsapi.php?ac=list"},
{"key":"f2dcj6","value":"http://f2dcj6.com/sapi/json?ac=list"},
{"key":"zywcj","value":"http://99zywcj.com/inc/jsonsapi.php?ac=list"},
{"key":"zmcj88","value":"http://zmcj88.com/sapi/json?ac=list"},
{"key":"wmcj8","value":"http://zmcj88.com/sapi/json?ac=list"},
# 10-11
{"key":"duobike_joke","value":"http://dopic.net/"},
{"key":"tantan_video","value":"https://apittzy.com/api.php/provide/vod/?ac=list"},
{"key":"taose_video","value":"https://api.taoseapi.com/api.php/provide/vod/?ac=list"},
{"key":"9987_video","value":"https://www.qbzyz.com/api.php/provide/vod/?ac=list"},
{"key":"cangtain_video","value":"http://cj.cangtiancj.com/api.php/provide/vod/at/xml"},
# 11-2
{"key":"msnii_video","value":"https://www.msnii.com/api/json.php?ac=list"},
{"key":"xrbsp_video","value":"https://www.xrbsp.com/api/json.php?ac=list"},
{"key":"gdlsp_video","value":"https://www.gdlsp.com/api/json.php?ac=list"},
{"key":"kxgav_video","value":"https://www.kxgav.com/api/json.php?ac=list"},
{"key":"pgxdy_video","value":"https://www.pgxdy.com/api/json.php?ac=list"},
]
def start():
redis = RedisModel()
for item in tasks():
redis.model().lpush(item["key"],item["value"])
print("任务创建成功!")
if __name__ == '__main__':
start()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/orangbus/scrapy-app.git
git@gitee.com:orangbus/scrapy-app.git
orangbus
scrapy-app
scrapy-app
master

搜索帮助