Git Product home page Git Product logo

class_npels's Introduction

Class_Npels

如果遇到问题,请直接Issues我会在第一时间解决你的问题

  • 2017.10.21 修复切换单元报错

  • 更新介绍: 没什么好说的...就是改了一下地址,配置环境更方便,更新了chorme驱动器

  • 下次更新: 增加UI界面(如果有时间的话)

配置环境说明

使用教程

  • 1.将这个脚本下载下来!
  • 2.打开在程序文件夹目录打开cmd界面 输入命令 pip install -r requirements.txt 等待安装完成
  • 3.打开在程序文件夹目录打开cmd界面 输入命令 python run.py 按提示输入你的账号密码

如果你喜欢这个脚本的话那就点给个星星吧

class_npels's People

Contributors

etcartman avatar badbubble avatar

Stargazers

蚊子 avatar  avatar edwardcullen avatar  avatar  avatar  avatar boogle avatar  avatar  avatar  avatar DeepWzh avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

class_npels's Issues

很疑惑ccss1找的到底是什么(纯新手,零基础)

Traceback (most recent call last):
File "run.py", line 22, in
a.ready()
File "……\Class_Npels.py", line 63, in ready
self.start(i)
File "……\Class_Npels.py", line 77, in start
self.driver.find_element_by_css_selector(self.ccss1).click()
File "……\Python\Python35\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 509, in find_element_by_css_selector
return self.find_element(by=By.CSS_SELECTOR, value=css_selector)
File "……\Python\Python35\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 843, in find_element
'value': value})['value']
File "……\Python\Python35\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 308, in execute
self.error_handler.check_response(response)
File "……\Programs\Python\Python35\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"#menu-container > ul > li:nth-child(3) > a"}
(Session info: chrome=71.0.3578.98)
(Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134 x86_64)

询问

我在调整间隔时间时试了很多数字,一段时间后都会报错,作者设置的间隔是多少呢?
另外是否可以检测到单词弹窗,然后定位到单词弹窗的确认按钮,进行下一步操作呢?

删除 git 记录里的大文件

永远不应该在 Git 记录里提交二进制文件或者大文件.
即使之后删除了, 大文件也会存在于记录中, 导致项目文件超大(80M).

运行以下指令来清除:

git filter-branch --force --index-filter 'git rm -rf --cached --ignore-unmatch step1.exe' --prune-empty --tag-name-filter cat -- --all
git filter-branch --force --index-filter 'git rm -rf --cached --ignore-unmatch chromedriver_win32.zip' --prune-empty --tag-name-filter cat -- --all
git filter-branch --force --index-filter 'git rm -rf --cached --ignore-unmatch ChromeStandalone_55.0.2883.87_Setup.exe' --prune-empty --tag-name-filter cat -- --all
git filter-branch --force --index-filter 'git rm -rf --cached --ignore-unmatch python-3.5.3-amd64.exe' --prune-empty --tag-name-filter cat -- --all
git filter-branch --force --index-filter 'git rm -rf --cached --ignore-unmatch README.docx' --prune-empty --tag-name-filter cat -- --all

然后清理本地 repo:

git push origin master --force
rm -rf .git/refs/original/
 git reflog expire --expire=now --all
git gc --prune=now

Thanks for your good work.

小问题

为什么是3.5,3.6不行呢?

已查过,网页上的id都没有问题

Traceback (most recent call last):
File "run.py", line 6, in
a = Npels(username, pwd)
File "K:\python\Class_Npels\Class_Npels.py", line 31, in init
self.login()
File "K:\python\Class_Npels\Class_Npels.py", line 41, in login
self.driver.find_element_by_id("tbName").send_keys(self.username)
File "D:\Anaconda3\envs\class\lib\site-packages\selenium\webdriver\remote\webelement.py", line 352, in send_keys
'value': keys_to_typing(value)})
File "D:\Anaconda3\envs\class\lib\site-packages\selenium\webdriver\remote\webelement.py", line 501, in _execute
return self._parent.execute(command, params)
File "D:\Anaconda3\envs\class\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 308, in execute
self.error_handler.check_response(response)
File "D:\Anaconda3\envs\class\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: call function result missing 'value'
(Session info: chrome=69.0.3497.100)
(Driver info: chromedriver=2.33.506120 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f),platform=Windows NT 10.0.17134 x86_64)

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.