Giter VIP home page Giter VIP logo

Comments (14)

Tsuk1ko avatar Tsuk1ko commented on May 10, 2024

请更新到最新版本,ascii2d 对 UA 做了检测

另外,如果 ascii2d 使用过多可能会导致 ip 被其封禁,届时请自行想办法

from cq-picsearcher-bot.

SakuraChanNya avatar SakuraChanNya commented on May 10, 2024

请更新到最新版本,ascii2d对UA进行检测

另外,如果ascii2d使用过多可能会导致ip被其封禁,届时请自行想办法

使用的是最新的2.11.0版本了。怎么判断ip被封禁?

from cq-picsearcher-bot.

Tsuk1ko avatar Tsuk1ko commented on May 10, 2024

被封禁的话你在机器上开浏览器访问应该就会直接不给你访问

但我看你这里'User-Agent': 'axios/0.19.0',新版是改了的

https://github.com/Tsuk1ko/CQ-picfinder-robot/blob/dd2c249e75668e3537a9e5293b4db60c28f40eac/modules/axiosProxy.js#L22-L27

你更新完之后有重启吗

from cq-picsearcher-bot.

SakuraChanNya avatar SakuraChanNya commented on May 10, 2024

被封禁的话你在机器上开浏览器访问应该就会直接不给你访问

但我看你这里'User-Agent': 'axios/0.19.0',新版是改了的

https://github.com/Tsuk1ko/CQ-picfinder-robot/blob/dd2c249e75668e3537a9e5293b4db60c28f40eac/modules/axiosProxy.js#L22-L27

你更新完之后有重启吗

服务器上的浏览器能正常打开日志里的链接说明没被屏蔽https://github.com/SakuraSauce/photolink/blob/master/CQ/server.jpg
QQ里却无回应https://github.com/SakuraSauce/photolink/blob/master/CQ/QQ.png
对照了一下Axios,也是正确的https://github.com/SakuraSauce/photolink/blob/master/CQ/axiosProxy.jpg
我更新都是下载新的版本重新npm i,所以肯定是重启过的,然后把旧的配置文件复制粘贴过去,是这个的原因吗?

from cq-picsearcher-bot.

Tsuk1ko avatar Tsuk1ko commented on May 10, 2024

应该不是,那就很迷,因为我这边是有正确使用 UA 的,问了下我朋友也没问题

from cq-picsearcher-bot.

SakuraChanNya avatar SakuraChanNya commented on May 10, 2024

应该不是,那就很迷,因为我这边是有正确使用 UA 的,问了下我朋友也没问题

好吧喵😂

from cq-picsearcher-bot.

SakuraChanNya avatar SakuraChanNya commented on May 10, 2024

被封禁的话你在机器上开浏览器访问应该就会直接不给你访问

但我看你这里'User-Agent': 'axios/0.19.0',新版是改了的

https://github.com/Tsuk1ko/CQ-picfinder-robot/blob/dd2c249e75668e3537a9e5293b4db60c28f40eac/modules/axiosProxy.js#L22-L27

你更新完之后有重启吗

问一下,error 500就是被屏蔽了吗?

from cq-picsearcher-bot.

Tsuk1ko avatar Tsuk1ko commented on May 10, 2024

我有一个被屏蔽的是直接返回 404 的,另外还存在 UA 检测,我目前只知道这些

from cq-picsearcher-bot.

SakuraChanNya avatar SakuraChanNya commented on May 10, 2024

我有一个被屏蔽的是直接返回 404 的,另外还存在 UA 检测,我目前只知道这些

真奇怪,后来又能用ascii2d了,可是刚用2天,又显示"ascii2d 搜索失败",后台是error 500。

from cq-picsearcher-bot.

Tsuk1ko avatar Tsuk1ko commented on May 10, 2024

总之如果你在机器上直接用浏览器能正常访问其 API 就说明没被封禁(看 readme 右侧的那个实验性 API),图片 URL 可以通过给机器人发图带--get-url参数获得

如果直接访问没问题,剩下的可能还是 UA 问题,检查你的错误日志,为什么你这里没生效我也不得而知了,实在不行的话本地起一个 nginx 来反代,设置 proxy header 来加上自己浏览器的 UA,改配置ascii2dHost来用本地反代

from cq-picsearcher-bot.

SakuraChanNya avatar SakuraChanNya commented on May 10, 2024

总之如果你在机器上直接用浏览器能正常访问其 API 就说明没被封禁(看 readme 右侧的那个实验性 API),图片 URL 可以通过给机器人发图带--get-url参数获得

如果直接访问没问题,剩下的可能还是 UA 问题,检查你的错误日志,为什么你这里没生效我也不得而知了,实在不行的话本地起一个 nginx 来反代,设置 proxy header 来加上自己浏览器的 UA,改配置ascii2dHost来用本地反代

把服务器重启过又好了,我怀疑是Windows 2012的问题。到时候装成centos试试看。

from cq-picsearcher-bot.

Tsuk1ko avatar Tsuk1ko commented on May 10, 2024

@SakuraSauce 如果你不熟悉 docker 那一套和一些网络细节不建议用 linux 酷Q

from cq-picsearcher-bot.

SakuraChanNya avatar SakuraChanNya commented on May 10, 2024

@SakuraSauce 如果你不熟悉 docker 那一套和一些网络细节不建议用 linux 酷Q

酷Q还是在Windows2012上,只是把这个CQ-picfinder-robot项目移动到别的Linux服务器上。(我有3台centos)HTTP插件支持从公网连接吧?

from cq-picsearcher-bot.

Tsuk1ko avatar Tsuk1ko commented on May 10, 2024

@SakuraSauce 支持的,只要你记得确保端口开放以及配置填对就行

from cq-picsearcher-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.