Code Monkey home page Code Monkey logo

selenuim_comment's Introduction

auto_douban

豆瓣小组自动回帖、顶贴

豆瓣滑块验证过了 评论也会要求验证码,所以也加了验证码识别,用的百度文字识别api,注册后加上access_token 就行; 也就是ocr函数

具体回复的评论url id,是帖子链接上的数字,;如https://www.douban.com/group/topic/12345/中的12345

selenuim_comment's People

Contributors

975278060 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

pqok

selenuim_comment's Issues

Message: invalid element state

拉下代码,安装依赖后,执行一直错误。错误如下:
Traceback (most recent call last):
File "/Users/sijie/PycharmProjects/pythonProject2/main.py", line 172, in
denglu(s1, s2)
File "/Users/sijie/PycharmProjects/pythonProject2/main.py", line 65, in denglu
huadong()
File "/Users/sijie/PycharmProjects/pythonProject2/main.py", line 127, in huadong
pinglun(i,driver)
File "/Users/sijie/PycharmProjects/pythonProject2/main.py", line 137, in pinglun
driver.find_element_by_name("rv_comment").clear()
File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webelement.py", line 93, in clear
self._execute(Command.CLEAR_ELEMENT)
File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webelement.py", line 710, in _execute
return self._parent.execute(command, params)
File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 424, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidElementStateException: Message: invalid element state

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.