如何在firefox的缓存文件夹中的每个文件中搜索“ http”?

我正在从C:\ Users \ User \ AppData \ Local \ Mozilla \ Firefox \ Profiles \ orlxb2co.default-release \ cache2 \ entries的Firefox缓存中提取所有有用的信息。

如何使用python访问上面目录中的每个文件并在文件中搜索URL链接?

这是我到目前为止所拥有的:

firefox_profile_path = os.path.join(paths.homePath(),'AppData','Local','Mozilla','Firefox','Profiles','cache2')
for cache_name in glob.glob(firefox_profile_path):
    with open(cache_name,'rb') as file_cache:
        data = file_cache.read()
        firefox_db |= set(re.findall("(http.*?)\x00",data))
        print(firefox_db)
zhangzhiwei1986913 回答:如何在firefox的缓存文件夹中的每个文件中搜索“ http”?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3145088.html

大家都在问