Coder Social home page Coder Social logo

[BUG]经常无响应 about curl_cffi HOT 5 CLOSED

jifeilong9 avatar jifeilong9 commented on June 7, 2024
[BUG]经常无响应

from curl_cffi.

Comments (5)

yifeikong avatar yifeikong commented on June 7, 2024 1
requests.get(url, proxy="http://user:[email protected]:3128")

from curl_cffi.

yifeikong avatar yifeikong commented on June 7, 2024

我可以看到r.text已经获取到网站的数据了

html = r.text
return html

麻烦具体说一下什么叫「可以看到」,是打出来日志了?这两行你是卡在哪一行了?

from curl_cffi.

jifeilong9 avatar jifeilong9 commented on June 7, 2024

我可以看到r.text已经获取到网站的数据了

html = r.text
return html

麻烦具体说一下什么叫「可以看到」,是打出来日志了?这两行你是卡在哪一行了?

就是网站已经返回数据了,但是调试走过return html就卡住了
image

from curl_cffi.

yifeikong avatar yifeikong commented on June 7, 2024

那不应该吧,close 在 requests.get 返回的时候就调用了。

from curl_cffi.

jifeilong9 avatar jifeilong9 commented on June 7, 2024

那不应该吧,close 在 requests.get 返回的时候就调用了。

谢谢,试了很多次都是这样,我再研究下吧,顺便问下没有认证的代理我看到有例子,那带有认证的代理如何设置账号密码

from curl_cffi.

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.