Skip to content

FooDeas/afraid-autologin

 
 

Repository files navigation

Afraid Autologin

  • Logs in freedns.afraid.org using USERNAME/PASSWORD from settings.py.
  • Avoids account from being terminated due to inactivity (6 months).
  • Run this script using cron every few months: source bin/activate && python autologin.py
  • Uses firefox to go through the site. You may optionally install PhantomJS to use with the --browser flag.
  • Can be run using a virtual display for headless systems by passing the --headless flag.

Manual Set Up

To setup your virtualenv (once):

$ cd afraid-autologin
$ virtualenv venv

To use it:

$ source venv/bin/activate
$ pip install -r requirements.txt
$ python autologin.py

Docker

Docker Hub

Usage

docker-compose (click here for more info)

---
version: "2.1"
services:
  afraid-autologin:
    image: foodeas/afraid-autologin
    container_name: afraid-autologin
    environment:
      - USERNAME=afraid_username
      - PASSWORD=afraid_password

CLI Usage

docker run -d \
  --name=afraid-login\
  -e USERNAME=afraid_username \
  -e PASSWORD=afraid_password \
  foodeas/afraid-autologin

One time execution

docker run --rm -it \
  -e USERNAME=afraid_username \
  -e PASSWORD=afraid_password \
  foodeas/afraid-autologin /app/execute.sh

Parameters

Parameter Function
-e USERNAME=afraid_username Username for Afraid DNS
-e PASSWORD=afraid_password Password for Afraid DNS

About

Automatically login to FreeDNS.Afraid.org to avoid termination due to dormant account

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 76.1%
  • Dockerfile 17.2%
  • Shell 4.1%
  • Makefile 2.6%