-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathscripts.py.dist
31 lines (27 loc) · 904 Bytes
/
scripts.py.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import random, time, traceback
# Create your script here:
def awesome(InstaPy, username, password, proxy=None):
try:
session = InstaPy(username=username, password=password)
session.login()
session.end()
except:
print(traceback.format_exc())
def biglikers(InstaPy, username, password, proxy=None):
try:
session = InstaPy(username=username, password=password)
session.login()
session.end()
except:
print(traceback.format_exc())
# !! Not delete the following code.
class Scripts:
def __init__(self):
functions = [f for fname, f in sorted(globals().items()) if callable(f)]
self.scripts = {}
for function in functions:
name = str(function.__name__).lower()
if name != "scripts":
self.scripts[name] = function