Created
August 6, 2016 15:17
-
-
Save saiftheboss7/e87093003fd9ef2a3fd8150a0146d81a to your computer and use it in GitHub Desktop.
Python Script to Automatically Suspend Hosting Accounts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Made by: @saiftheboss7 | |
Job: To automatically suspend accounts at a given time. | |
Instruction: Run this code via cronjob | |
Works on Python 2.7+ | |
''' | |
#!/usr/bin/env python | |
import datetime | |
import urllib | |
today = datetime.date.today() | |
desired_date=datetime.date(2016,8,6) ##Format(YY/MM/DD) | |
if(today==desired_date): | |
urllib.urlretrieve ("https://dl.dropboxusercontent.com/u/5417937/Softs/index.html", "index.html") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment