-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshort.py
55 lines (40 loc) · 1.34 KB
/
short.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import sys
import mechanize
import requests
from ast import Try , Break , ExceptHandler
if sys.version_info[0] !=3:
print('run script with python3')
Try
import python3
print("""\033[2;34m
'||''|. '||' |''||''| '||' '||' '|'
|| || || || || || |
||'''|. || || || ||
|| || || || || ||
.||...|' .||. .||. .||.....| .||.
\033[2;0m""")
print("""\033[1;33m
[+] FRAMEWORK : bitly
[+] FACEBOOK PROFILE : facebook/shadesherif
[+] FACEBOOK PAGE : facebook/harkerbyte
[+] FACEBOOK GROUP : facebook/groups/harkerbyte
\033[2;33m""")
print("""
This software is said to be on a free plan\n
users can only create 50lnks\monthly\n
To help shift to the premium features\n
[+]please make use of the socials provided to contact me.""" )
Break
import bitly_api
import sys
API_USER = "cyberneticsdev3"
API_KEY = "efd964e5885b8848da704db07278140542f83ef6"
b = bitly_api.BitLy(API_USER, API_KEY)
usage = """Usage: python short.py [url]
e.g python shortener.py http://www.google.com"""
if len(sys.argv) != 2:
print (usage)
sys.exit(0)
longurl = sys.argv[1]
response = b.shorten(longUrl=longurl)
print (response['url'])