Skip to content

zeyadkhaled/Reboot-Router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Reboot Router using Python

I am learning Python so decided to code down this quick Router Rebooting script to fix one of daily issues.

Usage

  • Just fill in the 5 variables by refering to the examples

    user_data = {} #Example: {'user':'admin','password':'admin'}
    reboot_data = {} #Example: {'reboot':'true'}
    headers = {} #Example: {'Content-Type': 'application/x-www-form-urlencoded'} 
    login_url = '' #Example: http://192.168.1.1/api/user/login
    reboot_url = '' #Example: http://192.168.1.1/api/user/reboot
  • Thats it. Now you can run the script

Requirments

  • requests module
    pip requests install
    
  • Python 3

About

A quick nifty Python script to assist me with my struggles of manually rebooting the router everytime the internet is down.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages