Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Python Script to Automatically Suspend Hosting Accounts
'''
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
You can’t perform that action at this time.