UAForge 1.1.1__py3-none-any.whl → 1.1.2__py3-none-any.whl
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.
- uaforge/__init__.py +1 -1
- uaforge/cli.py +2 -2
- uaforge/core/__init__.py +1 -1
- uaforge/core/user_agent.py +3 -3
- {uaforge-1.1.1.dist-info → uaforge-1.1.2.dist-info}/METADATA +17 -10
- uaforge-1.1.2.dist-info/RECORD +15 -0
- uaforge-1.1.1.dist-info/RECORD +0 -15
- {uaforge-1.1.1.dist-info → uaforge-1.1.2.dist-info}/WHEEL +0 -0
- {uaforge-1.1.1.dist-info → uaforge-1.1.2.dist-info}/entry_points.txt +0 -0
- {uaforge-1.1.1.dist-info → uaforge-1.1.2.dist-info}/licenses/LICENSE +0 -0
- {uaforge-1.1.1.dist-info → uaforge-1.1.2.dist-info}/top_level.txt +0 -0
uaforge/__init__.py
CHANGED
uaforge/cli.py
CHANGED
|
@@ -88,8 +88,8 @@ Examples:
|
|
|
88
88
|
from .utils import save_useragents_to_file
|
|
89
89
|
|
|
90
90
|
if os.path.exists(args.output):
|
|
91
|
-
overwrite = input(f"The {args.output} file already exists. Should it be overwritten? (yes/no)")
|
|
92
|
-
if overwrite.lower() != '
|
|
91
|
+
overwrite = input(f"The {args.output} file already exists. Should it be overwritten? (yes/no) : ")
|
|
92
|
+
if overwrite.lower() != 'y' and overwrite.lower() != 'yes':
|
|
93
93
|
print("The transaction has been cancelled.")
|
|
94
94
|
return
|
|
95
95
|
|
uaforge/core/__init__.py
CHANGED
|
@@ -2,5 +2,5 @@ from ..core.user_agent import UserAgentGenerator
|
|
|
2
2
|
from ..core.database import Database
|
|
3
3
|
from ..core.version_fetcher import VersionFetcher
|
|
4
4
|
|
|
5
|
-
__version__ = "1.1.
|
|
5
|
+
__version__ = "1.1.2"
|
|
6
6
|
__all__ = ['UserAgentGenerator', 'Database', 'VersionFetcher', 'generate_user_agent', 'generate_multiple']
|
uaforge/core/user_agent.py
CHANGED
|
@@ -86,7 +86,7 @@ class UserAgentGenerator:
|
|
|
86
86
|
else:
|
|
87
87
|
raise ValueError(f"Desteklenmeyen tarayıcı tipi: {browser_type}")
|
|
88
88
|
|
|
89
|
-
def _create_chrome_agent(self, system_select: str, type_select: str) -> str:
|
|
89
|
+
def _create_chrome_agent(self, select_key: str, system_select: str, type_select: str) -> str:
|
|
90
90
|
"""
|
|
91
91
|
Generates a Chrome-based User-Agent string based on the provided system and type selections.
|
|
92
92
|
Args:
|
|
@@ -113,7 +113,7 @@ class UserAgentGenerator:
|
|
|
113
113
|
CHROME_VERS_SELECT = random.choice(self.CHROME_VERS)
|
|
114
114
|
return f"{Moz}/{Mozilla_vers} ({system_select}; {type_select}) AppleWebKit/537.36 (KHTML, like Gecko) {CHROME_VERS_SELECT} Safari/537.36"
|
|
115
115
|
|
|
116
|
-
def _create_firefox_agent(self, system_select: str, type_select: str) -> str:
|
|
116
|
+
def _create_firefox_agent(self, select_key: str, system_select: str, type_select: str) -> str:
|
|
117
117
|
"""
|
|
118
118
|
Generates a Firefox user agent string based on the provided system and type selections.
|
|
119
119
|
Args:
|
|
@@ -141,7 +141,7 @@ class UserAgentGenerator:
|
|
|
141
141
|
FIREFOX_VERS_SELECT = random.choice(self.FIREFOX_VERS)
|
|
142
142
|
return f"{Moz}/{Mozilla_vers} ({system_select}; {type_select}; rv:109.0) Gecko/20100101 {FIREFOX_VERS_SELECT}"
|
|
143
143
|
|
|
144
|
-
def _create_opera_agent(self, system_select: str, type_select: str) -> str:
|
|
144
|
+
def _create_opera_agent(self,select_key: str, system_select: str, type_select: str) -> str:
|
|
145
145
|
"""
|
|
146
146
|
Generates an Opera browser User-Agent string based on the provided system and type selections.
|
|
147
147
|
Args:
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: UAForge
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.2
|
|
4
4
|
Summary: A powerful Python library and CLI tool for generating realistic, random user agent strings for Chrome, Firefox, and Opera browsers across multiple platforms.
|
|
5
5
|
Home-page: https://github.com/bolgac/UAForge
|
|
6
6
|
Author: bolgac
|
|
7
7
|
Author-email: bytearchsoft@gmail.com
|
|
8
|
-
|
|
8
|
+
Project-URL: Bug Tracker, https://github.com/bolgac/UAForge/issues
|
|
9
|
+
Project-URL: Documentation, https://github.com/bolgac/UAForge#readme
|
|
10
|
+
Project-URL: Source Code, https://github.com/bolgac/UAForge
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
9
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: Information Technology
|
|
10
14
|
Classifier: Topic :: Software Development :: Testing
|
|
15
|
+
Classifier: Topic :: Utilities
|
|
16
|
+
Classifier: Environment :: Console
|
|
11
17
|
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
15
18
|
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
22
|
Classifier: License :: OSI Approved :: MIT License
|
|
17
23
|
Classifier: Operating System :: OS Independent
|
|
24
|
+
Classifier: Natural Language :: English
|
|
18
25
|
Requires-Python: >=3.6
|
|
19
26
|
Description-Content-Type: text/markdown
|
|
20
27
|
License-File: LICENSE
|
|
@@ -28,15 +35,15 @@ Dynamic: description
|
|
|
28
35
|
Dynamic: description-content-type
|
|
29
36
|
Dynamic: home-page
|
|
30
37
|
Dynamic: license-file
|
|
38
|
+
Dynamic: project-url
|
|
31
39
|
Dynamic: requires-dist
|
|
32
40
|
Dynamic: requires-python
|
|
33
41
|
Dynamic: summary
|
|
34
42
|
|
|
35
|
-

|
|
37
|
-
](https://pypi.org/project/UAForge/)
|
|
44
|
+
[](https://www.python.org/downloads/)
|
|
45
|
+
[](https://github.com/bolgac/UAForge/blob/main/LICENSE)
|
|
46
|
+

|
|
40
47
|
---
|
|
41
48
|
|
|
42
49
|
# UAForge - UserAgent Generator
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
uaforge/__init__.py,sha256=oYIZEPDCkPctWkbibkw_h7N68mIzqE40IK9hjN4nVlU,4549
|
|
2
|
+
uaforge/cli.py,sha256=ibiEAD3fKFRvCfzX9KKbgz5QRJp3twNllUHLajrld18,3760
|
|
3
|
+
uaforge/utils.py,sha256=fBFvY_YnXwIHusq9NIKnHYDP7WFwuZEgzr0EqUqIY38,1135
|
|
4
|
+
uaforge/core/__init__.py,sha256=xffEfKr7CrcebMgBBE5zdXc8_Zi9dHGEMoFhMHeagjc,272
|
|
5
|
+
uaforge/core/database.py,sha256=kYu-TQcnixbsgq91kW_bYTRIZLtemN6EvMvfVusbDwM,14546
|
|
6
|
+
uaforge/core/user_agent.py,sha256=4tzHMRQ8MFThNKC_mKNNT5WEAGruDuuyWJPYQUBsd2Y,11002
|
|
7
|
+
uaforge/core/version_fetcher.py,sha256=4_dE_lhiWrrpFQflF-sqx8oKGWyGB8IkfyiCZHFiSRA,7597
|
|
8
|
+
uaforge/core/version_updater.py,sha256=JeS_AmpmF0_7xCIgqhAlMiLpNkx_2jfBsbv1Rim8U-I,17369
|
|
9
|
+
uaforge/data/useragent.db,sha256=v2hvLezWKbYh-Wg2DDOpALcAiyMIm4pi9d0d_y21YyU,180224
|
|
10
|
+
uaforge-1.1.2.dist-info/licenses/LICENSE,sha256=GSGGweX_ViAqIE_ZkV16FBtkJrTb2obvX7NCcxnoTzg,1082
|
|
11
|
+
uaforge-1.1.2.dist-info/METADATA,sha256=ChtZ7zzcH7KBZDn3eK4OYrLoH17xS9lu0z28bCsBddY,8467
|
|
12
|
+
uaforge-1.1.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
13
|
+
uaforge-1.1.2.dist-info/entry_points.txt,sha256=QD0rKbTJ1ZNJPdW6oyOmCzZSe-Be17wijzqEYKTPKsI,45
|
|
14
|
+
uaforge-1.1.2.dist-info/top_level.txt,sha256=aymoFKz_qHDLMglGkS5f_bMSrvzzPPoy0_Ufa4pu_5w,8
|
|
15
|
+
uaforge-1.1.2.dist-info/RECORD,,
|
uaforge-1.1.1.dist-info/RECORD
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
uaforge/__init__.py,sha256=OpHfsJs8BpQnoEJs6q1RL96d6mE8zVctHWxRkPDdiqw,4549
|
|
2
|
-
uaforge/cli.py,sha256=yvXIVBdmJInHOFgzuPCHfQXq09CJecLw30sUc-CjGuE,3726
|
|
3
|
-
uaforge/utils.py,sha256=fBFvY_YnXwIHusq9NIKnHYDP7WFwuZEgzr0EqUqIY38,1135
|
|
4
|
-
uaforge/core/__init__.py,sha256=uDDasB_V-LRCI0r9p4IzFj-8uYmI5PakIZfgDfOZki0,272
|
|
5
|
-
uaforge/core/database.py,sha256=kYu-TQcnixbsgq91kW_bYTRIZLtemN6EvMvfVusbDwM,14546
|
|
6
|
-
uaforge/core/user_agent.py,sha256=Qpsxa1IIsGBtrMeCQatFWwudkz9sMMywmlonzIn4VIE,10952
|
|
7
|
-
uaforge/core/version_fetcher.py,sha256=4_dE_lhiWrrpFQflF-sqx8oKGWyGB8IkfyiCZHFiSRA,7597
|
|
8
|
-
uaforge/core/version_updater.py,sha256=JeS_AmpmF0_7xCIgqhAlMiLpNkx_2jfBsbv1Rim8U-I,17369
|
|
9
|
-
uaforge/data/useragent.db,sha256=v2hvLezWKbYh-Wg2DDOpALcAiyMIm4pi9d0d_y21YyU,180224
|
|
10
|
-
uaforge-1.1.1.dist-info/licenses/LICENSE,sha256=GSGGweX_ViAqIE_ZkV16FBtkJrTb2obvX7NCcxnoTzg,1082
|
|
11
|
-
uaforge-1.1.1.dist-info/METADATA,sha256=CtBHADEtFSJQ7j2cBUK8kIHzhhpUwAzo_3Wsu38tfwc,8018
|
|
12
|
-
uaforge-1.1.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
13
|
-
uaforge-1.1.1.dist-info/entry_points.txt,sha256=QD0rKbTJ1ZNJPdW6oyOmCzZSe-Be17wijzqEYKTPKsI,45
|
|
14
|
-
uaforge-1.1.1.dist-info/top_level.txt,sha256=aymoFKz_qHDLMglGkS5f_bMSrvzzPPoy0_Ufa4pu_5w,8
|
|
15
|
-
uaforge-1.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|