clinton 0.0.1__tar.gz → 0.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {clinton-0.0.1 → clinton-0.0.3}/Clinton/__init__.py +5 -2
- {clinton-0.0.1 → clinton-0.0.3}/Clinton/functions/__init__.py +1 -0
- clinton-0.0.3/Clinton/functions/collections.py +6 -0
- {clinton-0.0.1 → clinton-0.0.3}/Clinton/functions/function01.py +10 -6
- clinton-0.0.3/Clinton/functions/function02.py +74 -0
- clinton-0.0.3/Clinton/scripts/__init__.py +3 -0
- clinton-0.0.3/Clinton/scripts/script01.py +5 -0
- clinton-0.0.3/Clinton/scripts/script02.py +32 -0
- clinton-0.0.3/Clinton/scripts/script05.py +14 -0
- {clinton-0.0.1 → clinton-0.0.3}/PKG-INFO +16 -1
- clinton-0.0.3/README.md +17 -0
- {clinton-0.0.1 → clinton-0.0.3}/clinton.egg-info/PKG-INFO +16 -1
- {clinton-0.0.1 → clinton-0.0.3}/clinton.egg-info/SOURCES.txt +4 -0
- {clinton-0.0.1 → clinton-0.0.3}/clinton.egg-info/requires.txt +1 -0
- clinton-0.0.1/Clinton/scripts/__init__.py +0 -1
- clinton-0.0.1/Clinton/scripts/script01.py +0 -4
- clinton-0.0.1/README.md +0 -3
- {clinton-0.0.1 → clinton-0.0.3}/LICENSE +0 -0
- {clinton-0.0.1 → clinton-0.0.3}/clinton.egg-info/dependency_links.txt +0 -0
- {clinton-0.0.1 → clinton-0.0.3}/clinton.egg-info/top_level.txt +0 -0
- {clinton-0.0.1 → clinton-0.0.3}/setup.cfg +0 -0
- {clinton-0.0.1 → clinton-0.0.3}/setup.py +0 -0
|
@@ -1,20 +1,24 @@
|
|
|
1
|
+
import json
|
|
1
2
|
import socket
|
|
2
3
|
import requests
|
|
3
|
-
from ..scripts import
|
|
4
|
-
|
|
4
|
+
from ..scripts import Apis
|
|
5
|
+
#================================================================
|
|
5
6
|
|
|
6
7
|
class InterNet:
|
|
7
8
|
|
|
8
9
|
def GetIP():
|
|
9
|
-
moones = requests.get(
|
|
10
|
+
moones = requests.get(Apis.DATA02)
|
|
10
11
|
moonus = moones.json()
|
|
11
12
|
return moonus['ip']
|
|
12
13
|
|
|
13
|
-
#====================================================================
|
|
14
|
-
|
|
15
14
|
def GetLIP():
|
|
16
15
|
moones = socket.gethostname()
|
|
17
16
|
moonus = socket.gethostbyname(moones)
|
|
18
17
|
return moonus
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
def tracker(IP):
|
|
20
|
+
mainse = requests.get(Apis.DATA01.format(IP))
|
|
21
|
+
moonus = json.loads(mainse.text)
|
|
22
|
+
return moonus
|
|
23
|
+
|
|
24
|
+
#================================================================
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import time
|
|
3
|
+
import ffmpeg
|
|
4
|
+
import random
|
|
5
|
+
import asyncio
|
|
6
|
+
from ..scripts import Scripted
|
|
7
|
+
from .collections import SMessage
|
|
8
|
+
#====================================================================================================
|
|
9
|
+
|
|
10
|
+
class Media:
|
|
11
|
+
|
|
12
|
+
async def interval(duramini, duration, numbers):
|
|
13
|
+
moonus = random.sample(range(duramini, duration), numbers)
|
|
14
|
+
moonus.sort()
|
|
15
|
+
return moonus
|
|
16
|
+
|
|
17
|
+
#====================================================================================================
|
|
18
|
+
|
|
19
|
+
async def metadata(incoming, outgoing, maps="0", command=None):
|
|
20
|
+
if not command or incoming == None:
|
|
21
|
+
return incoming
|
|
22
|
+
try:
|
|
23
|
+
mainse = ffmpeg.input(incoming)
|
|
24
|
+
nemose = mainse.output(outgoing, map=maps, **command, c="copy")
|
|
25
|
+
moonus = nemose.run(quiet=True)
|
|
26
|
+
os.remove(incoming)
|
|
27
|
+
return SMessage(result=outgoing)
|
|
28
|
+
except ffmpeg.Error as errors:
|
|
29
|
+
moonus = str(errors.stderr.decode('utf-8'))
|
|
30
|
+
return SMessage(result=None, errors=moonus)
|
|
31
|
+
except Exception as errors:
|
|
32
|
+
return SMessage(result=None, errors=errors)
|
|
33
|
+
|
|
34
|
+
#====================================================================================================
|
|
35
|
+
|
|
36
|
+
async def short(stime, etime, file, flocation, extension):
|
|
37
|
+
try:
|
|
38
|
+
output = flocation + str(round(time.time())) + extension
|
|
39
|
+
ffmpeg.input(file, ss=stime, t=etime).output(output).run(quiet=True)
|
|
40
|
+
ouoing = output if os.path.lexists(output) else None
|
|
41
|
+
return ouoing
|
|
42
|
+
except Exception:
|
|
43
|
+
return None
|
|
44
|
+
|
|
45
|
+
#====================================================================================================
|
|
46
|
+
|
|
47
|
+
async def screenshot(file, location, duration, extension=Scripted.DATA11):
|
|
48
|
+
try:
|
|
49
|
+
output = location + str(round(time.time())) + extension
|
|
50
|
+
ffmpeg.input(file, ss=duration).output(output, vframes=1).run(quiet=True)
|
|
51
|
+
ouoing = output if os.path.lexists(output) else None
|
|
52
|
+
return ouoing
|
|
53
|
+
except Exception:
|
|
54
|
+
return None
|
|
55
|
+
|
|
56
|
+
#====================================================================================================
|
|
57
|
+
|
|
58
|
+
async def screenshots(file, location, numbers, duration, durations=5, images=None):
|
|
59
|
+
imageess = images if images else []
|
|
60
|
+
if duration < durations:
|
|
61
|
+
return imageess
|
|
62
|
+
interval = await Video.interval(durations, duration, numbers)
|
|
63
|
+
for looper in range(numbers):
|
|
64
|
+
valuesom = interval[0]
|
|
65
|
+
imagesve = await Video.screenshot(file, location, valuesom)
|
|
66
|
+
if imagesve == None:
|
|
67
|
+
continue
|
|
68
|
+
imageess.append(imagesve)
|
|
69
|
+
interval.remove(valuesom)
|
|
70
|
+
await asyncio.sleep(3)
|
|
71
|
+
else:
|
|
72
|
+
return imageess
|
|
73
|
+
|
|
74
|
+
#====================================================================================================
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from .script01 import Script01
|
|
2
|
+
|
|
3
|
+
class Scripted(Script01):
|
|
4
|
+
|
|
5
|
+
TRACKER01 = "Targeted IP : {}"
|
|
6
|
+
TRACKER02 = "IP type : {}"
|
|
7
|
+
TRACKER03 = "Country : {}"
|
|
8
|
+
TRACKER04 = "Country Code : {}"
|
|
9
|
+
TRACKER05 = "City : {}"
|
|
10
|
+
TRACKER06 = "Continent : {}"
|
|
11
|
+
TRACKER07 = "Continent Code : {}"
|
|
12
|
+
TRACKER07 = "Region : {}"
|
|
13
|
+
TRACKER09 = "Region Code : {}"
|
|
14
|
+
TRACKER10 = "Latitude : {}"
|
|
15
|
+
TRACKER11 = "Longitude : {}"
|
|
16
|
+
TRACKER12 = "EU : {}"
|
|
17
|
+
TRACKER13 = "Postal : {}"
|
|
18
|
+
TRACKER14 = "Calling Code : {}"
|
|
19
|
+
TRACKER15 = "Capital : {}"
|
|
20
|
+
TRACKER16 = "Borders : {}"
|
|
21
|
+
TRACKER17 = "Country Flag : {}"
|
|
22
|
+
TRACKER18 = "ASN : {}"
|
|
23
|
+
TRACKER19 = "ORG : {}"
|
|
24
|
+
TRACKER20 = "ISP : {}"
|
|
25
|
+
TRACKER21 = "Domain : {}"
|
|
26
|
+
TRACKER22 = "ID : {}"
|
|
27
|
+
TRACKER23 = "ABBR : {}"
|
|
28
|
+
TRACKER24 = "DST : {}"
|
|
29
|
+
TRACKER25 = "Offset : {}"
|
|
30
|
+
TRACKER26 = "UTC : {}"
|
|
31
|
+
TRACKER27 = "Current Time : {}"
|
|
32
|
+
TRACKER28 = "Maps : {}"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#====================================================================
|
|
2
|
+
|
|
3
|
+
class Apis(object):
|
|
4
|
+
|
|
5
|
+
DATA01 = "http://ipwho.is/{}"
|
|
6
|
+
DATA02 = "https://api.ipify.org?format=json"
|
|
7
|
+
|
|
8
|
+
#====================================================================
|
|
9
|
+
|
|
10
|
+
class Links(object):
|
|
11
|
+
|
|
12
|
+
DATA01 = "https://www.google.com/maps/@{},{},8z"
|
|
13
|
+
|
|
14
|
+
#====================================================================
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: clinton
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3
|
|
4
4
|
Summary: ㅤ
|
|
5
5
|
Home-page: https://github.com/Clinton-Abraham
|
|
6
6
|
Author: Clinton-Abraham
|
|
@@ -21,7 +21,22 @@ Description-Content-Type: text/markdown
|
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: aiohttp
|
|
23
23
|
Requires-Dist: requests
|
|
24
|
+
Requires-Dist: ffmpeg-python
|
|
24
25
|
|
|
25
26
|
<p align="center">
|
|
26
27
|
📦 <a href="https://pypi.org/project/clinton" style="text-decoration:none;">CLINTON</a>
|
|
27
28
|
</p>
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
import asyncio
|
|
32
|
+
from Clinton.functions import Media
|
|
33
|
+
|
|
34
|
+
async def main():
|
|
35
|
+
duration = 7000 # IN SECONDS
|
|
36
|
+
save = "./Home/" # OUTPUT LOCATION
|
|
37
|
+
file = "./Home/Video.mp4" # FILE LOCATION
|
|
38
|
+
result = await Media.screenshot(file, location, duration)
|
|
39
|
+
print(result)
|
|
40
|
+
|
|
41
|
+
asyncio.run(main())
|
|
42
|
+
```
|
clinton-0.0.3/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
📦 <a href="https://pypi.org/project/clinton" style="text-decoration:none;">CLINTON</a>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
```python
|
|
6
|
+
import asyncio
|
|
7
|
+
from Clinton.functions import Media
|
|
8
|
+
|
|
9
|
+
async def main():
|
|
10
|
+
duration = 7000 # IN SECONDS
|
|
11
|
+
save = "./Home/" # OUTPUT LOCATION
|
|
12
|
+
file = "./Home/Video.mp4" # FILE LOCATION
|
|
13
|
+
result = await Media.screenshot(file, location, duration)
|
|
14
|
+
print(result)
|
|
15
|
+
|
|
16
|
+
asyncio.run(main())
|
|
17
|
+
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: clinton
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3
|
|
4
4
|
Summary: ㅤ
|
|
5
5
|
Home-page: https://github.com/Clinton-Abraham
|
|
6
6
|
Author: Clinton-Abraham
|
|
@@ -21,7 +21,22 @@ Description-Content-Type: text/markdown
|
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: aiohttp
|
|
23
23
|
Requires-Dist: requests
|
|
24
|
+
Requires-Dist: ffmpeg-python
|
|
24
25
|
|
|
25
26
|
<p align="center">
|
|
26
27
|
📦 <a href="https://pypi.org/project/clinton" style="text-decoration:none;">CLINTON</a>
|
|
27
28
|
</p>
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
import asyncio
|
|
32
|
+
from Clinton.functions import Media
|
|
33
|
+
|
|
34
|
+
async def main():
|
|
35
|
+
duration = 7000 # IN SECONDS
|
|
36
|
+
save = "./Home/" # OUTPUT LOCATION
|
|
37
|
+
file = "./Home/Video.mp4" # FILE LOCATION
|
|
38
|
+
result = await Media.screenshot(file, location, duration)
|
|
39
|
+
print(result)
|
|
40
|
+
|
|
41
|
+
asyncio.run(main())
|
|
42
|
+
```
|
|
@@ -3,9 +3,13 @@ README.md
|
|
|
3
3
|
setup.py
|
|
4
4
|
Clinton/__init__.py
|
|
5
5
|
Clinton/functions/__init__.py
|
|
6
|
+
Clinton/functions/collections.py
|
|
6
7
|
Clinton/functions/function01.py
|
|
8
|
+
Clinton/functions/function02.py
|
|
7
9
|
Clinton/scripts/__init__.py
|
|
8
10
|
Clinton/scripts/script01.py
|
|
11
|
+
Clinton/scripts/script02.py
|
|
12
|
+
Clinton/scripts/script05.py
|
|
9
13
|
clinton.egg-info/PKG-INFO
|
|
10
14
|
clinton.egg-info/SOURCES.txt
|
|
11
15
|
clinton.egg-info/dependency_links.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from .script01 import Scripted
|
clinton-0.0.1/README.md
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|