waymore 8.2__tar.gz → 8.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.4
2
2
  Name: waymore
3
- Version: 8.2
3
+ Version: 8.3
4
4
  Summary: Find way more from the Wayback Machine, Common Crawl, Alien Vault OTX, URLScan, VirusTotal & Intelligence X!
5
5
  Home-page: https://github.com/xnl-h4ck3r/waymore
6
6
  Author: xnl-h4ck3r
@@ -21,7 +21,7 @@ Dynamic: license-file
21
21
 
22
22
  <center><img src="https://github.com/xnl-h4ck3r/waymore/blob/main/waymore/images/title.png"></center>
23
23
 
24
- ## About - v8.2
24
+ ## About - v8.3
25
25
 
26
26
  The idea behind **waymore** is to find even more links from the Wayback Machine (plus other sources) than other existing tools.
27
27
 
@@ -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 - v8.2
3
+ ## About - v8.3
4
4
 
5
5
  The idea behind **waymore** is to find even more links from the Wayback Machine (plus other sources) than other existing tools.
6
6
 
waymore-8.3/setup.py ADDED
@@ -0,0 +1,77 @@
1
+ #!/usr/bin/env python
2
+ import os
3
+ import re
4
+ import shutil
5
+ import sys
6
+
7
+ from setuptools import find_packages, setup
8
+
9
+ # Read version from __init__.py without importing
10
+
11
+
12
+ def get_version():
13
+ init_path = os.path.join(os.path.dirname(__file__), "waymore", "__init__.py")
14
+ with open(init_path, encoding="utf-8") as f:
15
+ content = f.read()
16
+ match = re.search(r'__version__\s*=\s*["\']([^"\']+)["\']', content)
17
+ if match:
18
+ return match.group(1)
19
+ raise RuntimeError("Unable to find version string.")
20
+
21
+
22
+ target_directory = (
23
+ os.path.join(os.getenv("APPDATA", ""), "waymore")
24
+ if os.name == "nt"
25
+ else (
26
+ os.path.join(os.path.expanduser("~"), "Library", "Application Support", "waymore")
27
+ if sys.platform == "darwin"
28
+ else os.path.join(os.path.expanduser("~"), ".config", "waymore")
29
+ )
30
+ )
31
+
32
+ # Copy the config.yml file to the target directory if it exists
33
+ configNew = False
34
+ if target_directory and os.path.isfile("config.yml"):
35
+ os.makedirs(target_directory, exist_ok=True)
36
+ # If file already exists, create a new one
37
+ if os.path.isfile(target_directory + "/config.yml"):
38
+ configNew = True
39
+ os.rename(target_directory + "/config.yml", target_directory + "/config.yml.OLD")
40
+ shutil.copy("config.yml", target_directory)
41
+ os.rename(target_directory + "/config.yml", target_directory + "/config.yml.NEW")
42
+ os.rename(target_directory + "/config.yml.OLD", target_directory + "/config.yml")
43
+ else:
44
+ shutil.copy("config.yml", target_directory)
45
+
46
+ setup(
47
+ name="waymore",
48
+ packages=find_packages(),
49
+ version=get_version(),
50
+ description="Find way more from the Wayback Machine, Common Crawl, Alien Vault OTX, URLScan & VirusTotal!",
51
+ long_description=open("README.md", encoding="utf-8").read(),
52
+ long_description_content_type="text/markdown",
53
+ author="@xnl-h4ck3r",
54
+ url="https://github.com/xnl-h4ck3r/waymore",
55
+ install_requires=[
56
+ "requests",
57
+ "pyyaml",
58
+ "termcolor",
59
+ "psutil",
60
+ "urlparse3",
61
+ "tldextract",
62
+ ],
63
+ entry_points={
64
+ "console_scripts": [
65
+ "waymore = waymore.waymore:main",
66
+ ],
67
+ },
68
+ )
69
+
70
+ if configNew:
71
+ print(
72
+ "\n\033[33mIMPORTANT: The file "
73
+ + target_directory
74
+ + "/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"
75
+ )
76
+ else:
77
+ print("\n\033[92mThe file " + target_directory + "/config.yml has been created.\n\033[0m")
@@ -0,0 +1 @@
1
+ __version__ = "8.3"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: waymore
3
- Version: 8.2
3
+ Version: 8.3
4
4
  Summary: Find way more from the Wayback Machine, Common Crawl, Alien Vault OTX, URLScan, VirusTotal & Intelligence X!
5
5
  Home-page: https://github.com/xnl-h4ck3r/waymore
6
6
  Author: xnl-h4ck3r
@@ -21,7 +21,7 @@ Dynamic: license-file
21
21
 
22
22
  <center><img src="https://github.com/xnl-h4ck3r/waymore/blob/main/waymore/images/title.png"></center>
23
23
 
24
- ## About - v8.2
24
+ ## About - v8.3
25
25
 
26
26
  The idea behind **waymore** is to find even more links from the Wayback Machine (plus other sources) than other existing tools.
27
27
 
waymore-8.2/setup.py DELETED
@@ -1,42 +0,0 @@
1
- #!/usr/bin/env python
2
- import os
3
- import re
4
-
5
- from setuptools import find_packages, setup
6
-
7
- # Read version from __init__.py without importing
8
-
9
-
10
- def get_version():
11
- init_path = os.path.join(os.path.dirname(__file__), "waymore", "__init__.py")
12
- with open(init_path, encoding="utf-8") as f:
13
- content = f.read()
14
- match = re.search(r'__version__\s*=\s*["\']([^"\']+)["\']', content)
15
- if match:
16
- return match.group(1)
17
- raise RuntimeError("Unable to find version string.")
18
-
19
-
20
- setup(
21
- name="waymore",
22
- packages=find_packages(),
23
- version=get_version(),
24
- description="Find way more from the Wayback Machine, Common Crawl, Alien Vault OTX, URLScan & VirusTotal!",
25
- long_description=open("README.md", encoding="utf-8").read(),
26
- long_description_content_type="text/markdown",
27
- author="@xnl-h4ck3r",
28
- url="https://github.com/xnl-h4ck3r/waymore",
29
- install_requires=[
30
- "requests",
31
- "pyyaml",
32
- "termcolor",
33
- "psutil",
34
- "urlparse3",
35
- "tldextract",
36
- ],
37
- entry_points={
38
- "console_scripts": [
39
- "waymore = waymore.waymore:main",
40
- ],
41
- },
42
- )
@@ -1 +0,0 @@
1
- __version__ = "8.2"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes