Coder Social home page Coder Social logo

afraid-autologin's People

Contributors

adriankeenan avatar h45rd avatar inderpreet99 avatar strenkml avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

afraid-autologin's Issues

TypeError: WebDriver.__init__() got an unexpected keyword argument 'firefox_profile'

I can't get this to run at all ๐Ÿ˜ฅ

$ python autologin.py
2023-08-02 15:41:24,847 >>> DEBUG: afraid-autologin startup
2023-08-02 15:41:24,848 >>> DEBUG: init browser
/home/user/apps/afraid-autologin/autologin.py:66: DeprecationWarning: firefox_profile has been deprecated, please use an Options object
  profile = webdriver.FirefoxProfile()
Traceback (most recent call last):
  File "/home/user/apps/afraid-autologin/autologin.py", line 122, in <module>
    main(logger)
  File "/home/user/apps/afraid-autologin/autologin.py", line 69, in main
    browser = webdriver.Firefox(firefox_profile=profile)
TypeError: WebDriver.__init__() got an unexpected keyword argument 'firefox_profile'

autologin no longer working

/etc/cron.monthly/afraid-autologin:
Traceback (most recent call last):
File "autologin.py", line 2, in
from selenium import webdriver
File "/root/afraid-autologin/venv/local/lib/python2.7/site-packages/selenium/webdriver/init.py", line 18, in
from .firefox.webdriver import WebDriver as Firefox # noqa
File "/root/afraid-autologin/venv/local/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 29, in
from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
File "/root/afraid-autologin/venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 21, in
import copy
File "/usr/lib/python2.7/copy.py", line 52, in
import weakref
File "/usr/lib/python2.7/weakref.py", line 14, in
from _weakref import (
ImportError: cannot import name _remove_dead_weakref
run-parts: /etc/cron.monthly/afraid-autologin exited with return code 1

Seems like an update to Phthon broke your tool...

[RFE] Python3 support

OK, this is not really a bug (yet), more like an enhancement request: with Python2 now in EOL status, afraid-autologin needs to be ported to Python3. By someone. Better yet, someone who can write Python3 :-)

Right now we have:

$ python3 -V
Python 3.6.9

$ python3 autologin.py
  File "autologin.py", line 95
    print input.get_attribute('value')
              ^
SyntaxError: invalid syntax

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.