Code Monkey home page Code Monkey logo

Comments (7)

ly0 avatar ly0 commented on June 11, 2024

有一定的可能性是编码问题,我确认一下

from baidupcsapi.

howzanh avatar howzanh commented on June 11, 2024

好的,谢谢,
https://passport.baidu.com/cgi-bin/genimage?tcG6007c1e8e24cc132024a14564301d67f61ac430710057e4a
注意,这个地址产生验证码是变化的,非唯一。

from baidupcsapi.

ly0 avatar ly0 commented on June 11, 2024

刚刚在mac下试了一下并没有问题,所以我怀疑是windows编码问题,我这里没有环境测试,要不你print 一下请求试试

from baidupcsapi.

howzanh avatar howzanh commented on June 11, 2024

print? 可以写代码我看下吗。

from baidupcsapi.

ly0 avatar ly0 commented on June 11, 2024

不对,感觉不大对头
你用的是哪个版本的?
当前版本不支持py2了而且验证码提示也不是这个

from baidupcsapi.

howzanh avatar howzanh commented on June 11, 2024

Finished processing dependencies for baidupcsapi==0.9.2 ,采用本地资源安装,执行 from baidupcsapi import PCS,错误如下。

Python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 16:02:32) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.

from baidupcsapi import PCS
Traceback (most recent call last):
File "<pyshell#0>", line 1, in
from baidupcsapi import PCS
File "C:\Users\dell\AppData\Local\Programs\Python\Python35\lib\site-packages\baidupcsapi_init_.py", line 9, in
from .api import PCS
File "C:\Users\dell\AppData\Local\Programs\Python\Python35\lib\site-packages\baidupcsapi\api.py", line 1068
print '请求url', url
^
SyntaxError: Missing parentheses in call to 'print'

from baidupcsapi.

ly0 avatar ly0 commented on June 11, 2024

print('请求url', url)

from baidupcsapi.

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.