inderpreet99 / afraid-autologin Goto Github PK
View Code? Open in Web Editor NEWAutomatically login to FreeDNS.Afraid.org to avoid termination due to dormant account
License: Apache License 2.0
Automatically login to FreeDNS.Afraid.org to avoid termination due to dormant account
License: Apache License 2.0
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'
Hi and thanks for this tool! I wasn't able to run it w/o installing some extra stuff (CentOS 7):
Please, add it to the docs.
/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...
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
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.