unrealon 2.0.24__py3-none-any.whl → 2.0.27__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.
- {unrealon-2.0.24.dist-info → unrealon-2.0.27.dist-info}/METADATA +1 -1
- {unrealon-2.0.24.dist-info → unrealon-2.0.27.dist-info}/RECORD +9 -6
- unrealon_installer/batch_templates/quick_run.bat.j2 +25 -0
- unrealon_installer/batch_templates/start.bat.j2 +252 -0
- unrealon_installer/batch_templates/test.bat.j2 +56 -0
- {unrealon-2.0.24.dist-info → unrealon-2.0.27.dist-info}/LICENSE +0 -0
- {unrealon-2.0.24.dist-info → unrealon-2.0.27.dist-info}/WHEEL +0 -0
- {unrealon-2.0.24.dist-info → unrealon-2.0.27.dist-info}/entry_points.txt +0 -0
- {unrealon-2.0.24.dist-info → unrealon-2.0.27.dist-info}/top_level.txt +0 -0
|
@@ -130,9 +130,12 @@ unrealon_installer/browser_fixes.py,sha256=f67T41e4vfOpDAu1hiDEZ5-BLJ663Bl7oWiHD
|
|
|
130
130
|
unrealon_installer/core.py,sha256=VvAi7iNBFUrJFUkANQ0gv4tyYCaf-cgtUboXVnrjr50,3826
|
|
131
131
|
unrealon_installer/platform.py,sha256=NI6-j6674jLWjF0RFRDwXW01D0OueEhhijjevgmbAVs,3122
|
|
132
132
|
unrealon_installer/templates.py,sha256=PBGfKWlrhtd92h2c68RhtXgICATmHkGObRn6nT0e2Jg,1920
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
unrealon-2.0.
|
|
137
|
-
unrealon-2.0.
|
|
138
|
-
unrealon-2.0.
|
|
133
|
+
unrealon_installer/batch_templates/quick_run.bat.j2,sha256=B5_vNI7qbds-uHA3rQGx77cle19wKRgerCDHafLaQwc,554
|
|
134
|
+
unrealon_installer/batch_templates/start.bat.j2,sha256=o7mbo__76BSGj4WGPBYjBgn4d3uLXAoChYbbeyGInXQ,6457
|
|
135
|
+
unrealon_installer/batch_templates/test.bat.j2,sha256=eq_Bj-zN6jUZWLwgzPtYDCr4YbgjseMSIfDPYT5ODFw,1348
|
|
136
|
+
unrealon-2.0.27.dist-info/LICENSE,sha256=eEH8mWZW49YMpl4Sh5MtKqkZ8aVTzKQXiNPEnvL14ns,1070
|
|
137
|
+
unrealon-2.0.27.dist-info/METADATA,sha256=GJbUttkVDqzNBjid2oIORE3s7FZ_phH91mdLKXymiQE,15718
|
|
138
|
+
unrealon-2.0.27.dist-info/WHEEL,sha256=pL8R0wFFS65tNSRnaOVrsw9EOkOqxLrlUPenUYnJKNo,91
|
|
139
|
+
unrealon-2.0.27.dist-info/entry_points.txt,sha256=tBJgozewpyuXznEYIsLwfE1s16VRjy3Wizhuyh26zb4,153
|
|
140
|
+
unrealon-2.0.27.dist-info/top_level.txt,sha256=qN6Q72fe4_i8mTOhYcO3fhGa3g4dmBgvZOsqmK4j8D8,66
|
|
141
|
+
unrealon-2.0.27.dist-info/RECORD,,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@echo off
|
|
2
|
+
REM {{ parser_name }} - Quick Run
|
|
3
|
+
REM Fast execution without menus
|
|
4
|
+
|
|
5
|
+
title {{ parser_name }} Quick Run
|
|
6
|
+
|
|
7
|
+
echo.
|
|
8
|
+
echo {{ parser_name }} - Quick Run Mode
|
|
9
|
+
echo {{ "=" * (parser_name|length + 20) }}
|
|
10
|
+
echo.
|
|
11
|
+
|
|
12
|
+
REM Setup environment
|
|
13
|
+
set PYTHONIOENCODING=utf-8
|
|
14
|
+
set PLAYWRIGHT_BROWSERS_PATH=0
|
|
15
|
+
set PYTHONUNBUFFERED=1
|
|
16
|
+
|
|
17
|
+
REM Apply platform fixes
|
|
18
|
+
python -c "from unrealon_installer.platform import apply_platform_fixes; apply_platform_fixes()" 2>nul
|
|
19
|
+
|
|
20
|
+
echo Starting quick test: 5 requests, 2 concurrent...
|
|
21
|
+
python main.py 5 2
|
|
22
|
+
|
|
23
|
+
echo.
|
|
24
|
+
echo Quick run completed!
|
|
25
|
+
pause
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
@echo off
|
|
2
|
+
REM {{ parser_name }} - Universal Windows Installer
|
|
3
|
+
REM Generated by UnrealOn Universal Installer v2.0.0
|
|
4
|
+
|
|
5
|
+
title {{ parser_name }} Parser
|
|
6
|
+
|
|
7
|
+
echo.
|
|
8
|
+
echo {{ parser_name }} Parser - Windows Edition
|
|
9
|
+
echo {{ "=" * (parser_name|length + 25) }}
|
|
10
|
+
echo UnrealOn Driver-based parser with universal installer
|
|
11
|
+
echo Browsers: {{ browsers_list }}
|
|
12
|
+
echo Proxy Support: {% if has_proxy %}Yes{% else %}No{% endif %}
|
|
13
|
+
echo.
|
|
14
|
+
|
|
15
|
+
REM Setup environment variables
|
|
16
|
+
set PYTHONIOENCODING=utf-8
|
|
17
|
+
set PLAYWRIGHT_BROWSERS_PATH=0
|
|
18
|
+
set PYTHONUNBUFFERED=1
|
|
19
|
+
set UNREALON_PARSER_NAME={{ parser_name }}
|
|
20
|
+
|
|
21
|
+
REM Apply UnrealOn platform fixes
|
|
22
|
+
python -c "from unrealon_installer.platform import apply_platform_fixes; apply_platform_fixes()" 2>nul
|
|
23
|
+
|
|
24
|
+
:main_menu
|
|
25
|
+
echo Main Menu:
|
|
26
|
+
echo.
|
|
27
|
+
echo [1] RUN PARSER (Quick Start)
|
|
28
|
+
echo [2] SETUP SYSTEM (First Time Setup)
|
|
29
|
+
echo [3] MANAGE BROWSERS (Install/Fix Browsers)
|
|
30
|
+
echo [4] MANAGE DEPENDENCIES (Install/Update Packages)
|
|
31
|
+
echo [5] SYSTEM STATUS (Check Installation)
|
|
32
|
+
echo [6] TROUBLESHOOTING (Fix Issues)
|
|
33
|
+
echo [7] HELP and INFO
|
|
34
|
+
echo [8] EXIT
|
|
35
|
+
echo.
|
|
36
|
+
set /p choice="Enter your choice (1-8): "
|
|
37
|
+
|
|
38
|
+
if "%choice%"=="1" goto run_parser
|
|
39
|
+
if "%choice%"=="2" goto setup_system
|
|
40
|
+
if "%choice%"=="3" goto manage_browsers
|
|
41
|
+
if "%choice%"=="4" goto manage_dependencies
|
|
42
|
+
if "%choice%"=="5" goto system_status
|
|
43
|
+
if "%choice%"=="6" goto troubleshooting
|
|
44
|
+
if "%choice%"=="7" goto help_info
|
|
45
|
+
if "%choice%"=="8" goto exit_script
|
|
46
|
+
goto main_menu
|
|
47
|
+
|
|
48
|
+
:run_parser
|
|
49
|
+
cls
|
|
50
|
+
echo.
|
|
51
|
+
echo {{ parser_name }} Parser - Run Mode
|
|
52
|
+
echo {{ "=" * (parser_name|length + 25) }}
|
|
53
|
+
echo.
|
|
54
|
+
|
|
55
|
+
echo Choose parsing mode:
|
|
56
|
+
echo [1] ONE-TIME mode (50 requests, 5 concurrent)
|
|
57
|
+
{% if has_persistent %}echo [2] PERSISTENT mode (continuous monitoring){% else %}REM [2] PERSISTENT mode not supported{% endif %}
|
|
58
|
+
echo [3] QUICK TEST (5 requests, 2 concurrent)
|
|
59
|
+
echo [4] PERFORMANCE TEST (100 requests, 10 concurrent)
|
|
60
|
+
echo [5] CUSTOM mode
|
|
61
|
+
echo.
|
|
62
|
+
set /p mode="Enter mode (1-5): "
|
|
63
|
+
|
|
64
|
+
if "%mode%"=="1" (
|
|
65
|
+
echo Starting ONE-TIME mode: 50 requests, 5 concurrent
|
|
66
|
+
python main.py 50 5
|
|
67
|
+
)
|
|
68
|
+
{% if has_persistent %}
|
|
69
|
+
if "%mode%"=="2" (
|
|
70
|
+
echo Starting PERSISTENT mode: continuous monitoring
|
|
71
|
+
python main.py 5 --persistent
|
|
72
|
+
)
|
|
73
|
+
{% endif %}
|
|
74
|
+
if "%mode%"=="3" (
|
|
75
|
+
echo Starting QUICK TEST: 5 requests, 2 concurrent
|
|
76
|
+
python main.py 5 2
|
|
77
|
+
)
|
|
78
|
+
if "%mode%"=="4" (
|
|
79
|
+
echo Starting PERFORMANCE TEST: 100 requests, 10 concurrent
|
|
80
|
+
set /p confirm="This will run 100 requests. Continue? (Y/N): "
|
|
81
|
+
if /i "%confirm%"=="Y" python main.py 100 10
|
|
82
|
+
)
|
|
83
|
+
if "%mode%"=="5" (
|
|
84
|
+
set /p args="Enter custom arguments: "
|
|
85
|
+
python main.py %args%
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
echo.
|
|
89
|
+
echo Press any key to return to main menu...
|
|
90
|
+
pause >nul
|
|
91
|
+
goto main_menu
|
|
92
|
+
|
|
93
|
+
:setup_system
|
|
94
|
+
cls
|
|
95
|
+
echo.
|
|
96
|
+
echo System Setup
|
|
97
|
+
echo =============
|
|
98
|
+
echo.
|
|
99
|
+
echo Installing Python dependencies...
|
|
100
|
+
pip install -r requirements.txt
|
|
101
|
+
echo.
|
|
102
|
+
echo Installing browsers...
|
|
103
|
+
playwright install chromium
|
|
104
|
+
echo.
|
|
105
|
+
echo Setup complete!
|
|
106
|
+
echo.
|
|
107
|
+
pause
|
|
108
|
+
goto main_menu
|
|
109
|
+
|
|
110
|
+
:manage_browsers
|
|
111
|
+
cls
|
|
112
|
+
echo.
|
|
113
|
+
echo Browser Management
|
|
114
|
+
echo ==================
|
|
115
|
+
echo.
|
|
116
|
+
echo [1] Install all browsers
|
|
117
|
+
echo [2] Install Chromium only
|
|
118
|
+
echo [3] Install Firefox only
|
|
119
|
+
echo [4] Check browser status
|
|
120
|
+
echo [5] Back to main menu
|
|
121
|
+
echo.
|
|
122
|
+
set /p browser_choice="Enter choice (1-5): "
|
|
123
|
+
|
|
124
|
+
if "%browser_choice%"=="1" playwright install
|
|
125
|
+
if "%browser_choice%"=="2" playwright install chromium
|
|
126
|
+
if "%browser_choice%"=="3" playwright install firefox
|
|
127
|
+
if "%browser_choice%"=="4" (
|
|
128
|
+
echo Checking browser status...
|
|
129
|
+
playwright --version
|
|
130
|
+
python -c "from playwright.sync_api import sync_playwright; print('Browsers OK')" 2>nul || echo "Browser check failed"
|
|
131
|
+
)
|
|
132
|
+
if "%browser_choice%"=="5" goto main_menu
|
|
133
|
+
|
|
134
|
+
echo.
|
|
135
|
+
pause
|
|
136
|
+
goto main_menu
|
|
137
|
+
|
|
138
|
+
:manage_dependencies
|
|
139
|
+
cls
|
|
140
|
+
echo.
|
|
141
|
+
echo Dependency Management
|
|
142
|
+
echo =====================
|
|
143
|
+
echo.
|
|
144
|
+
echo [1] Install/Update all dependencies
|
|
145
|
+
echo [2] Install production dependencies only
|
|
146
|
+
echo [3] Check dependency status
|
|
147
|
+
echo [4] Back to main menu
|
|
148
|
+
echo.
|
|
149
|
+
set /p dep_choice="Enter choice (1-4): "
|
|
150
|
+
|
|
151
|
+
if "%dep_choice%"=="1" (
|
|
152
|
+
pip install -r requirements.txt
|
|
153
|
+
pip install --upgrade unrealon
|
|
154
|
+
)
|
|
155
|
+
if "%dep_choice%"=="2" pip install -r requirements.txt
|
|
156
|
+
if "%dep_choice%"=="3" (
|
|
157
|
+
echo Checking dependencies...
|
|
158
|
+
pip list | findstr unrealon
|
|
159
|
+
python -c "import unrealon_driver; print('UnrealOn Driver:', unrealon_driver.__version__)" 2>nul || echo "UnrealOn Driver not found"
|
|
160
|
+
)
|
|
161
|
+
if "%dep_choice%"=="4" goto main_menu
|
|
162
|
+
|
|
163
|
+
echo.
|
|
164
|
+
pause
|
|
165
|
+
goto main_menu
|
|
166
|
+
|
|
167
|
+
:system_status
|
|
168
|
+
cls
|
|
169
|
+
echo.
|
|
170
|
+
echo System Status Check
|
|
171
|
+
echo ===================
|
|
172
|
+
echo.
|
|
173
|
+
|
|
174
|
+
echo Python Version:
|
|
175
|
+
python --version
|
|
176
|
+
|
|
177
|
+
echo.
|
|
178
|
+
echo Platform Information:
|
|
179
|
+
python -c "from unrealon_installer.platform import get_platform_info; import json; print(json.dumps(get_platform_info(), indent=2))" 2>nul || echo "Platform info not available"
|
|
180
|
+
|
|
181
|
+
echo.
|
|
182
|
+
echo UnrealOn Driver Status:
|
|
183
|
+
python -c "import unrealon_driver; print('Version:', unrealon_driver.__version__)" 2>nul || echo "UnrealOn Driver not installed"
|
|
184
|
+
|
|
185
|
+
echo.
|
|
186
|
+
echo Browser Status:
|
|
187
|
+
playwright --version 2>nul || echo "Playwright not installed"
|
|
188
|
+
|
|
189
|
+
echo.
|
|
190
|
+
echo Dependencies:
|
|
191
|
+
pip list | findstr -i "unrealon playwright requests"
|
|
192
|
+
|
|
193
|
+
echo.
|
|
194
|
+
pause
|
|
195
|
+
goto main_menu
|
|
196
|
+
|
|
197
|
+
:troubleshooting
|
|
198
|
+
cls
|
|
199
|
+
echo.
|
|
200
|
+
echo Troubleshooting Guide
|
|
201
|
+
echo =====================
|
|
202
|
+
echo.
|
|
203
|
+
echo Common issues and solutions:
|
|
204
|
+
echo.
|
|
205
|
+
echo 1. "ModuleNotFoundError: No module named 'unrealon_driver'"
|
|
206
|
+
echo Solution: Run "pip install -r requirements.txt"
|
|
207
|
+
echo.
|
|
208
|
+
echo 2. "Browser not found" errors
|
|
209
|
+
echo Solution: Run "playwright install chromium"
|
|
210
|
+
echo.
|
|
211
|
+
echo 3. "Permission denied" errors
|
|
212
|
+
echo Solution: Run as Administrator
|
|
213
|
+
echo.
|
|
214
|
+
echo 4. Proxy connection issues
|
|
215
|
+
echo Solution: Check proxy configuration in proxy_config.py
|
|
216
|
+
echo.
|
|
217
|
+
echo 5. SSL certificate errors
|
|
218
|
+
echo Solution: Platform fixes are applied automatically
|
|
219
|
+
echo.
|
|
220
|
+
echo Press any key to return to main menu...
|
|
221
|
+
pause >nul
|
|
222
|
+
goto main_menu
|
|
223
|
+
|
|
224
|
+
:help_info
|
|
225
|
+
cls
|
|
226
|
+
echo.
|
|
227
|
+
echo {{ parser_name }} Parser - Help and Information
|
|
228
|
+
echo {{ "=" * (parser_name|length + 25) }}
|
|
229
|
+
echo.
|
|
230
|
+
echo This is a UnrealOn Driver-based parser with the following features:
|
|
231
|
+
echo.
|
|
232
|
+
echo - Multi-concurrent API processing
|
|
233
|
+
echo - Browser automation with Playwright
|
|
234
|
+
echo - Proxy support (if configured)
|
|
235
|
+
echo - Cross-platform compatibility
|
|
236
|
+
{% if has_persistent %}echo - Persistent monitoring mode{% endif %}
|
|
237
|
+
echo - Automatic dependency management
|
|
238
|
+
echo.
|
|
239
|
+
echo Configuration:
|
|
240
|
+
echo {{ config_json }}
|
|
241
|
+
echo.
|
|
242
|
+
echo For more information, visit: https://github.com/unrealon
|
|
243
|
+
echo.
|
|
244
|
+
echo Press any key to return to main menu...
|
|
245
|
+
pause >nul
|
|
246
|
+
goto main_menu
|
|
247
|
+
|
|
248
|
+
:exit_script
|
|
249
|
+
echo.
|
|
250
|
+
echo Thank you for using {{ parser_name }} Parser!
|
|
251
|
+
echo.
|
|
252
|
+
exit /b 0
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@echo off
|
|
2
|
+
REM {{ parser_name }} - System Test
|
|
3
|
+
REM Comprehensive system and functionality test
|
|
4
|
+
|
|
5
|
+
title {{ parser_name }} System Test
|
|
6
|
+
|
|
7
|
+
echo.
|
|
8
|
+
echo {{ parser_name }} - System Test
|
|
9
|
+
echo {{ "=" * (parser_name|length + 15) }}
|
|
10
|
+
echo.
|
|
11
|
+
|
|
12
|
+
REM Setup environment
|
|
13
|
+
set PYTHONIOENCODING=utf-8
|
|
14
|
+
set PLAYWRIGHT_BROWSERS_PATH=0
|
|
15
|
+
set PYTHONUNBUFFERED=1
|
|
16
|
+
|
|
17
|
+
echo [1/5] Testing Python environment...
|
|
18
|
+
python --version || (
|
|
19
|
+
echo ERROR: Python not found!
|
|
20
|
+
pause
|
|
21
|
+
exit /b 1
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
echo [2/5] Testing UnrealOn Driver...
|
|
25
|
+
python -c "import unrealon_driver; print('UnrealOn Driver version:', unrealon_driver.__version__)" || (
|
|
26
|
+
echo ERROR: UnrealOn Driver not installed!
|
|
27
|
+
echo Run: pip install -r requirements.txt
|
|
28
|
+
pause
|
|
29
|
+
exit /b 1
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
echo [3/5] Testing platform compatibility...
|
|
33
|
+
python -c "from unrealon_installer.platform import get_platform_info; print('Platform OK')" || (
|
|
34
|
+
echo ERROR: Platform compatibility issues!
|
|
35
|
+
pause
|
|
36
|
+
exit /b 1
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
echo [4/5] Testing browser availability...
|
|
40
|
+
playwright --version || (
|
|
41
|
+
echo ERROR: Playwright not installed!
|
|
42
|
+
echo Run: playwright install chromium
|
|
43
|
+
pause
|
|
44
|
+
exit /b 1
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
echo [5/5] Running parser test...
|
|
48
|
+
python main.py 1 1
|
|
49
|
+
|
|
50
|
+
echo.
|
|
51
|
+
echo {{ "=" * (parser_name|length + 15) }}
|
|
52
|
+
echo All tests completed successfully!
|
|
53
|
+
echo {{ parser_name }} is ready to use.
|
|
54
|
+
echo {{ "=" * (parser_name|length + 15) }}
|
|
55
|
+
echo.
|
|
56
|
+
pause
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|