Vu1nT0tal / yarb

方便获取每日安全资讯的爬虫和推送程序

Home Page:https://vulntotal-team.github.io/yarb/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

文件不存在BUG

gh0stkey opened this issue · comments

运行提示:[-] 文件不存在 /home/yhbot/yarb-main/temp_data.json

那就说明没有爬取到数据

本地RSS添加了自己博客的数据,爬不了了吗

看看咋添加的

$ cat rss/CustomRSS.opml

<?xml version="1.0" encoding="UTF-8"?>
<opml version="2.0">
<head>
<title>CustomRSS</title>
</head>
<body>
<outline text="test" title="test" type="rss" htmlUrl="https://gh0st.cn" xmlUrl="https://gh0st.cn/feed" />
</body>
</opml>

看代码了,应该是pubday导致的,啦取的时候判断了时间

嗯,默认只爬昨天的

应该加个容错,防止出现没有数据的情况,另外,推送机器人如果传输数据过大会导致无法推送成功,可以对数据内容进行分段。

刚提交的有数据分段了