acrazing / dbapi Goto Github PK
View Code? Open in Web Editor NEW基于HTML爬虫的豆瓣小组API(Python版本)
License: MIT License
基于HTML爬虫的豆瓣小组API(Python版本)
License: MIT License
你好,请问一下,按照你目前的接口来看的话,批量操作这一块是无法实现的吧,还有针对多页的评论不知道自己在第几页,这个也是无法自动循环找到的吧?我现在在做一个js的豆瓣批量操作程序,刚好看到你的这篇文章,想交流一下,如果可以的话,能加一下微信么?我的是CG12104410
您好!我在尝试使用您的豆瓣机器人,在跑的过程中,出现了以下错误。
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/Users/Nathan/Downloads/dbapi-master/dbapi/DoubanAPI.py", line 10, in <module> from dbapi.Group import Group File "dbapi/Group.py", line 11, in <module> from html import unescape ImportError: cannot import name unescape
能麻烦问下如何解决嘛,谢谢!
Hello, when I run
dbapi login <usr_email> <usr_pwd>
I always get the following error:
Traceback (most recent call last):
File "/Users/clairel/anaconda3/bin/dbapi", line 10, in
sys.exit(main())
File "/Users/clairel/anaconda3/lib/python3.7/site-packages/dbapi/cli.py", line 82, in main
print(json.dumps(method(*args), indent=2, default=default))
File "/Users/clairel/anaconda3/lib/python3.7/site-packages/dbapi/base.py", line 224, in login
raise Exception('Authorization failed for <%s>: %s' % (username, r1.url))
Exception: Authorization failed for <my_email_address>: https://accounts.douban.com/passport/login
I'm sure that my account information is correct. Do you have any idea why this is happening? Thanks a lot!
你好,其他get类型的接口都能正常工作。
但是add_comment返回正常但是实际页面上并没有出现评价。日志及返回:
2018-01-11 14:05:47,565 dbapi DEBUG fetch apipost:https://www.douban.com/group/topic/111521899/add_comment
Out[5]:
<Response [200]>
你好,我用api,试了几条指令都没有输出
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.