whusnoopy / renrenBackup

A backup tool for renren.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

下载的图片 有一些内容是 404

lqzhgood opened this issue · comments

下载的某些图片内容实质是

<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>openresty</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

根据图片链接打开,某些图片会404,但是过阵子打开又会正常,推测是cdn第一次访问无图片返回404,回源拿到后返回正常。

不会 Pythonnodejs 写了个,原理是读取 img 目录中 404 的图片,然后按照地址反复多次下载。虽然 人人 已经凉了,如果有人能用得上的自取吧。
https://github.com/lqzhgood/renrenBackup-Timeline#downimg

人人的这个 404 很讨厌,不是按 HTTP 协议返回的 404,判断起来比较坑
加上 2021.05.18 改版后面目全非,也没啥意义了 -___-|

嗯~~ 我还算是赶上了最后一班车吧
如果有人用 renrenBackup 备份过的话还是可以用这个补全404的图片的。
文件服务器应该还是没有删,文件现在应该还都在。 但是现在改成这样的前端是没法获取文件的 url 了。。。

搞不懂还重写前端干嘛,留着以前的前端到最后一刻不好么~~