GithubHelp home page GithubHelp logo

Comments (22)

Yunxi-awa avatar Yunxi-awa commented on August 25, 2024 1

迷惑的点就在这里,问题又回到原点了、、、、我再查查防火墙,最近刚重装电脑

生草,查了一遍,没有使用系统代理,defender也没抽风,vpn更是没开,网络端口也没被占用

from jmcomic-crawler-python.

hect0x7 avatar hect0x7 commented on August 25, 2024

其实不是bug,是有意为之,根本原因是禁漫APP的本子详情接口不返回更新日期、发布日期这些字段,但是网页有返回。
所以当使用JmApiClient时,只能对这些字段赋特殊值,来兼容实体类,对应代码位于:

fields['episode_list'] = episode_list
for it in 'scramble_id', 'page_count', 'pub_date', 'update_date':
fields[it] = '0'

from jmcomic-crawler-python.

hect0x7 avatar hect0x7 commented on August 25, 2024

你可以换成网页端Client试试,配置下option的client.impl = 'html'即可

示例代码:

from jmcomic import *

op = create_option_by_env()
cl = op.new_jm_client(impl='html')

album = cl.get_album_detail(123)
print(album.pub_date)
print(album.update_date)

打印信息

2024-01-13 16:57:00:【html】https://18comic.vip/album/123
2018-03-12
2022-12-05

from jmcomic-crawler-python.

Yunxi-awa avatar Yunxi-awa commented on August 25, 2024

有点无奈的是html不知为何会请求失败,但浏览器打开可以访问,并且f12看也没有重定向

from jmcomic-crawler-python.

hect0x7 avatar hect0x7 commented on August 25, 2024

有点无奈的是html不知为何会请求失败,但浏览器打开可以访问,并且f12看也没有重定向

option有和浏览器配置一样的代理吗?

from jmcomic-crawler-python.

Yunxi-awa avatar Yunxi-awa commented on August 25, 2024

浏览器未配置任何代理、、、

from jmcomic-crawler-python.

hect0x7 avatar hect0x7 commented on August 25, 2024

看下你的option配置?敏感信息记得删除掉

from jmcomic-crawler-python.

Yunxi-awa avatar Yunxi-awa commented on August 25, 2024

仅此而已,醉了

download:
  image:
    suffix: .jpg
  threading:
    image: 32
    photo: 16

dir_rule:
  base_dir: E:/JMAlbum/
  rule: Bd_Aid_Pindex

plugins:
  after_init:
    - plugin: login
      kwargs:
        username: ***
        password: ***

from jmcomic-crawler-python.

Yunxi-awa avatar Yunxi-awa commented on August 25, 2024

发现官方文档有误:https://jmcomic.readthedocs.io/en/stable/option_file_syntax/
经测试如果opt不定义impl则不止选择html,也会使用api

from jmcomic-crawler-python.

hect0x7 avatar hect0x7 commented on August 25, 2024

看你option也没有配置代理,这样的话,默认jmcomic会使用系统代理,浏览器也是默认遵循系统代理,按理说是一样的。
你浏览器访问的域名和jmcomic访问的域名一样吗?

from jmcomic-crawler-python.

hect0x7 avatar hect0x7 commented on August 25, 2024

发现官方文档有误:https://jmcomic.readthedocs.io/en/stable/option_file_syntax/ 经测试如果opt不定义impl则不止选择html,也会使用api

你是对的,默认的Client类型取决于 JmModuleConfig.DEFAULT_CLIENT_IMPL,最近我改成了api,文档还没有更新

from jmcomic-crawler-python.

Yunxi-awa avatar Yunxi-awa commented on August 25, 2024

是一致的,但http一直报错Failed to perform, ErrCode: 35, Reason: 'BoringSSL SSL_connect: Connection was reset in connection to 18comic-cn.vip:443 '. This may be a libcurl error, See https://curl.se/libcurl/c/libcurl-errors.html first for more details.
另外发现网站:https://jcomic-cn.vip

from jmcomic-crawler-python.

hect0x7 avatar hect0x7 commented on August 25, 2024

是一致的,但http一直报错Failed to perform, ErrCode: 35, Reason: 'BoringSSL SSL_connect: Connection was reset in connection to 18comic-cn.vip:443 '. This may be a libcurl error, See https://curl.se/libcurl/c/libcurl-errors.html first for more details. 另外发现网站:https://jcomic-cn.vip

Connection was reset 说明被墙了,你使用的网络访问不了18comic-cn.vip。
那但按理说,你用浏览器访问18comic-cn.vip,也会得到Connection was reset呀?

from jmcomic-crawler-python.

Yunxi-awa avatar Yunxi-awa commented on August 25, 2024

迷惑的点就在这里,问题又回到原点了、、、、我再查查防火墙,最近刚重装电脑

from jmcomic-crawler-python.

hect0x7 avatar hect0x7 commented on August 25, 2024

换别的域名试试?比如

client:
  impl: html
  domain:
    html: 18comic-cool.art

from jmcomic-crawler-python.

Yunxi-awa avatar Yunxi-awa commented on August 25, 2024

换别的域名试试?比如

client:
  impl: html
  domain:
    html: 18comic-cool.art

同样的问题,看来解决不是很简单了,我先凑合用api吧

from jmcomic-crawler-python.

Yunxi-awa avatar Yunxi-awa commented on August 25, 2024

换别的域名试试?比如

client:
  impl: html
  domain:
    html: 18comic-cool.art

同样的问题,看来解决不是很简单了,我先凑合用api吧

发现一件神奇的事,我能直连访问18comic.vip

from jmcomic-crawler-python.

hect0x7 avatar hect0x7 commented on August 25, 2024

换别的域名试试?比如

client:
  impl: html
  domain:
    html: 18comic-cool.art

同样的问题,看来解决不是很简单了,我先凑合用api吧

发现一件神奇的事,我能直连访问18comic.vip

啊??

from jmcomic-crawler-python.

hect0x7 avatar hect0x7 commented on August 25, 2024

国内不挂代理能访问?惊了,你哪个地区的,方便透露吗 😮访问https://ipinfo.io/ 看看

from jmcomic-crawler-python.

Yunxi-awa avatar Yunxi-awa commented on August 25, 2024

给的地址不是我的所在地,偏了几百公里到江苏了哈哈哈

from jmcomic-crawler-python.

hect0x7 avatar hect0x7 commented on August 25, 2024

换别的域名试试?比如

client:
  impl: html
  domain:
    html: 18comic-cool.art

同样的问题,看来解决不是很简单了,我先凑合用api吧

发现一件神奇的事,我能直连访问18comic.vip

用jmcomic能访问18comic.vip吗

from jmcomic-crawler-python.

Yunxi-awa avatar Yunxi-awa commented on August 25, 2024

换别的域名试试?比如

client:
  impl: html
  domain:
    html: 18comic-cool.art

同样的问题,看来解决不是很简单了,我先凑合用api吧

发现一件神奇的事,我能直连访问18comic.vip

用jmcomic能访问18comic.vip吗

时好时坏

from jmcomic-crawler-python.

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.