waymore 6.2__tar.gz → 6.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: waymore
3
- Version: 6.2
3
+ Version: 6.3
4
4
  Summary: Find way more from the Wayback Machine, Common Crawl, Alien Vault OTX, URLScan & VirusTotal!
5
5
  Home-page: https://github.com/xnl-h4ck3r/waymore
6
6
  Author: @xnl-h4ck3r
@@ -15,7 +15,7 @@ Requires-Dist: tldextract
15
15
 
16
16
  <center><img src="https://github.com/xnl-h4ck3r/waymore/blob/main/waymore/images/title.png"></center>
17
17
 
18
- ## About - v6.2
18
+ ## About - v6.3
19
19
 
20
20
  The idea behind **waymore** is to find even more links from the Wayback Machine than other existing tools.
21
21
 
@@ -1,6 +1,6 @@
1
1
  <center><img src="https://github.com/xnl-h4ck3r/waymore/blob/main/waymore/images/title.png"></center>
2
2
 
3
- ## About - v6.2
3
+ ## About - v6.3
4
4
 
5
5
  The idea behind **waymore** is to find even more links from the Wayback Machine than other existing tools.
6
6
 
waymore-6.3/setup.py ADDED
@@ -0,0 +1,78 @@
1
+ #!/usr/bin/env python
2
+ import os
3
+ import shutil
4
+ from setuptools import setup, find_packages
5
+
6
+ target_directory = (
7
+ os.path.join(os.getenv("APPDATA", ""), "waymore")
8
+ if os.name == "nt"
9
+ else (
10
+ os.path.join(os.path.expanduser("~"), ".config", "waymore")
11
+ if os.name == "posix"
12
+ else (
13
+ os.path.join(
14
+ os.path.expanduser("~"), "Library", "Application Support", "waymore"
15
+ )
16
+ if os.name == "darwin"
17
+ else None
18
+ )
19
+ )
20
+ )
21
+
22
+ # Copy the config.yml file to the target directory if it exists
23
+ configNew = False
24
+ if target_directory and os.path.isfile("config.yml"):
25
+ os.makedirs(target_directory, exist_ok=True)
26
+ # If file already exists, create a new one
27
+ if os.path.isfile(target_directory + "/config.yml"):
28
+ configNew = True
29
+ os.rename(
30
+ target_directory + "/config.yml", target_directory + "/config.yml.OLD"
31
+ )
32
+ shutil.copy("config.yml", target_directory)
33
+ os.rename(
34
+ target_directory + "/config.yml", target_directory + "/config.yml.NEW"
35
+ )
36
+ os.rename(
37
+ target_directory + "/config.yml.OLD", target_directory + "/config.yml"
38
+ )
39
+ else:
40
+ shutil.copy("config.yml", target_directory)
41
+
42
+ setup(
43
+ name="waymore",
44
+ packages=find_packages(),
45
+ version=__import__("waymore").__version__,
46
+ description="Find way more from the Wayback Machine, Common Crawl, Alien Vault OTX, URLScan & VirusTotal!",
47
+ long_description=open("README.md").read(),
48
+ long_description_content_type="text/markdown",
49
+ author="@xnl-h4ck3r",
50
+ url="https://github.com/xnl-h4ck3r/waymore",
51
+ py_modules=["waymore"],
52
+ install_requires=[
53
+ "requests",
54
+ "pyyaml",
55
+ "termcolor",
56
+ "psutil",
57
+ "urlparse3",
58
+ "tldextract",
59
+ ],
60
+ entry_points={
61
+ "console_scripts": [
62
+ "waymore = waymore.waymore:main",
63
+ ],
64
+ },
65
+ )
66
+
67
+ if configNew:
68
+ print(
69
+ "\n\033[33mIMPORTANT: The file "
70
+ + target_directory
71
+ + "/config.yml already exists.\nCreating config.yml.NEW but leaving existing config.\nIf you need the new file, then remove the current one and rename config.yml.NEW to config.yml\n\033[0m"
72
+ )
73
+ else:
74
+ print(
75
+ "\n\033[92mThe file "
76
+ + target_directory
77
+ + "/config.yml has been created.\n\033[0m"
78
+ )
@@ -0,0 +1 @@
1
+ __version__ = "6.3"