lolishinshi / exloli

从 E 站抓取画(ben)廊(zi)并上传 telegraph 并转发至 telegram channel
MIT License
117 stars 18 forks source link

遇到问题,执行时出现not found #73

Closed yurimoe closed 4 years ago

yurimoe commented 4 years ago

[2020-03-13T01:17:21Z INFO exloli::exhentai] 搜索前 1 页本子 [2020-03-13T01:17:21Z INFO exloli::exhentai] 找到 25 本 [2020-03-13T01:17:21Z INFO exloli] 画廊名称: ~*~ [2020-03-13T01:17:21Z INFO exloli] 画廊地址: ~https://exhentai.org/g/***~ [2020-03-13T02:27:58Z DEBUG exloli::exhentai] 获取画廊信息: https://exhentai.org /g/***** [2020-03-13T02:27:59Z DEBUG exloli::exhentai] 状态码: 200 OK [2020-03-13T02:27:59Z DEBUG exloli::exhentai] tags: {"language": ["chinese", "tr anslated"], "female": ["bondage", "gag"]} [2020-03-13T02:27:59Z DEBUG exloli::exhentai] 评分: 4.13 [2020-03-13T02:27:59Z DEBUG exloli::exhentai] 收藏数: 44 [2020-03-13T01:17:21Z ERROR exloli] 任务出错: not found

也尝试过编译0.2版本的,出现一样的错误。 不知道是哪里不对。 我的config配置如下

log_level = "INFO"

threads_num = 4 # 4.0 这里加“”会报错
[exhentai]

username = "****"

password = "****"

keyword = "chinese"

search_watched = false

max_pages = 2

max_img_cnt = 50

local_cache = false

cache_path = "/mnt/tg/"

[telegraph]

upload = true

access_token = "51*****82f4"

author_name = "yurimoe"

author_url = "https://t.me/*****"

[telegram]

channel_id = "@*****"

token = "881****Fa7Sw"

Aloxaf commented 4 years ago

竟然真有人用,我瞅一下

这个报错是 xpath 执行失败了

yurimoe commented 4 years ago

好项目,看着好玩,iOS上tg看本子感觉比app都方便 所以想部署一个 应该要怎么修呢?

Aloxaf commented 4 years ago

我试了一下没有问题,我怀疑是你的 ex 设置里改了一下布局之类的,然后导致 xpath 无法定位到相关元素。

Aloxaf commented 4 years ago

把报错弄得详细了一点:https://github.com/Aloxaf/exloli/commit/68dc01e20a0953c22ec6a456c15f079793a3e2d6 你重新编译一下最新版,看看是哪个 xpath 执行失败了,然后到 ex 设置里看看有没有相关设置

yurimoe commented 4 years ago

把报错弄得详细了一点:68dc01e 你重新编译一下最新版,看看是哪个 xpath 执行失败了,然后到 ex 设置里看看有没有相关设置

我试了一下没有问题,我怀疑是你的 ex 设置里改了一下布局之类的,然后导致 xpath 无法定位到相关元素。

实际上设置都是默认的,仅仅只是把图库页面缩略图设置切换为large 就跑起来了

Aloxaf commented 4 years ago

嗯?原来是我改了设置吗……

yurimoe commented 4 years ago

嗯?原来是我改了设置吗……

最开始也怀疑过是设置问题,因为也没看到什么改过的地方 所以发了issues 误打误撞 切换了缩略图 (‐^▽^‐) 现在已经成功将第一个本子上传到TG了