Giter Site home page Giter Site logo

Comments (6)

Mashiro-qwq avatar Mashiro-qwq commented on June 5, 2024

咳..补充一下,关掉代理软件可以正常生成了...请修复它

from knightreport.

Mashiro-qwq avatar Mashiro-qwq commented on June 5, 2024

image
另外评价一下现在的版本,宋体不如等线字体观感清晰,有很明显的锯齿感

且希望能增加居中功能(虽然不加也可以,就是后期进一步处理表格数据还需要多一道工作)
image

from knightreport.

cutecutecat avatar cutecutecat commented on June 5, 2024

代理的问题我之前关注过,你说得没错,可以稳定复现
这个问题的确存在很久了,但是不好处理
问题核心在于psf/requests#5740 (comment)
简单来说,Python内部库urllib,对于http类型的代理,会错误识别成https类型的,造成数据包投递失败。
这是一个底层问题,追踪在这里https://bugs.python.org/issue42627 目前还没有解决

我之前构思过这样几种方式:

  1. 强制本程序不走任何代理,但这样如果遇到必须要代理才能访问b站API时会很僵
  2. 重写urllib返回的https代理为http,但是万一用户用的就是https代理,就会南辕北辙

考虑到上面那个问题追踪已经有pr了,只是没合并,我就摸了,等更新之后我这边同步更新~

之前我大概在可能触发的位置加了一个报错

raise RuntimeError("请关闭代理")

那我周末在这里也加一个一样的
r = requests.get(url, cookies=cj, headers=Headers)

from knightreport.

cutecutecat avatar cutecutecat commented on June 5, 2024

有关格式的问题,我本周末来研究下API,应该都能处理掉

from knightreport.

cutecutecat avatar cutecutecat commented on June 5, 2024

~~有关canany版的chrome无法启动的问题,之前查询过资料在不同系统中Chrome的安装路径会有轻微区别。
为了兼容性,我没有硬指定可执行文件路径,尝试的启动方式为在 powershell中输入start chrome的方案,对我装的稳定版是可以用的~
接下来有时间我会多装几个版本来测试~~

测完了,已经复现,这是高优先级问题,马上来修
已经解决~

from knightreport.

Mashiro-qwq avatar Mashiro-qwq commented on June 5, 2024

有关canany版的chrome无法启动的问题,之前查询过资料在不同系统中Chrome的安装路径会有轻微区别。 为了兼容性,我没有硬指定可执行文件路径,尝试的启动方式为在 powershell中输入start chrome的方案,对我装的稳定版是可以用的 接下来有时间我会多装几个版本来测试~

测完了,已经复现,这是高优先级问题,马上来修 已经解决~

非常感谢!静候后续更新

from knightreport.

Related Issues (13)

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.