我克隆了这个repo并安装了所有需要的东西。该计划旨在申请linkedIn的工作。在申请这份工作之前,一切都很顺利。然后我得到pyautogui函数中的错误,我不允许更改它。错误是:
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\pyautogui__init__.py", line 691, in _normalizeXYArgs
return Point(int(firstArg), int(secondArg)) # firstArg and secondArg are just x and y number values
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
您可以通过安装pyautogui来检查代码
在您克隆的repo的
easyapplybot.py
文件的第294行中,修改avoid_lock(self)
函数如下:发生此错误是因为无法将
None
传递给pyautogui
的moveTo()
函数。因此,我将None
替换为pyautogui.position().y
,它是光标位置的y坐标希望这有帮助:)
相关问题 更多 >
编程相关推荐