unrealon 2.0.16__py3-none-any.whl → 2.0.18__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unrealon
3
- Version: 2.0.16
3
+ Version: 2.0.18
4
4
  Summary: Enterprise-grade web scraping platform with AI-powered automation and real-time orchestration capabilities
5
5
  Author-email: UnrealOn Team <team@unrealon.com>
6
6
  License: MIT
@@ -126,13 +126,13 @@ unrealon_driver/managers/update.py,sha256=-hohVxGXpj5bZ6ZTQN6NH1RK9Pd6GVzCMtu3GS
126
126
  unrealon_driver/utils/__init__.py,sha256=2Sz3eats5q4O2fDmefDuJt8M_zkN6xrS-9xXntWZWFc,168
127
127
  unrealon_driver/utils/time.py,sha256=Oxk1eicKeZl8ZWbf7gu1Ll716k6CpXmVj67FHSnPIsA,184
128
128
  unrealon_installer/__init__.py,sha256=JxA2hKat5E6R6nt-batuAc-2Cr0nO2M0XW0vOFU_xy0,333
129
- unrealon_installer/browser_fixes.py,sha256=I09aEMWwvN8-SbGJqJQHcnvsR4_JmjoiRKoyIqft4Rc,7754
130
- unrealon_installer/core.py,sha256=2BDDTrKthFtSqdRq0gSLkzN6lpMC9ER024wFMb1E5VQ,4584
129
+ unrealon_installer/browser_fixes.py,sha256=f67T41e4vfOpDAu1hiDEZ5-BLJ663Bl7oWiHD83rR6E,8081
130
+ unrealon_installer/core.py,sha256=VvAi7iNBFUrJFUkANQ0gv4tyYCaf-cgtUboXVnrjr50,3826
131
131
  unrealon_installer/platform.py,sha256=NI6-j6674jLWjF0RFRDwXW01D0OueEhhijjevgmbAVs,3122
132
- unrealon_installer/templates.py,sha256=jU3Fznp_VfZedfWNutVzepGUv2QYI2Q4LM_j8H38CrU,1896
133
- unrealon-2.0.16.dist-info/LICENSE,sha256=eEH8mWZW49YMpl4Sh5MtKqkZ8aVTzKQXiNPEnvL14ns,1070
134
- unrealon-2.0.16.dist-info/METADATA,sha256=-z8xcBDIOXBoV1_iBWpMIo8CZx9_R0JlTlF73etZS24,15718
135
- unrealon-2.0.16.dist-info/WHEEL,sha256=pL8R0wFFS65tNSRnaOVrsw9EOkOqxLrlUPenUYnJKNo,91
136
- unrealon-2.0.16.dist-info/entry_points.txt,sha256=tBJgozewpyuXznEYIsLwfE1s16VRjy3Wizhuyh26zb4,153
137
- unrealon-2.0.16.dist-info/top_level.txt,sha256=qN6Q72fe4_i8mTOhYcO3fhGa3g4dmBgvZOsqmK4j8D8,66
138
- unrealon-2.0.16.dist-info/RECORD,,
132
+ unrealon_installer/templates.py,sha256=PBGfKWlrhtd92h2c68RhtXgICATmHkGObRn6nT0e2Jg,1920
133
+ unrealon-2.0.18.dist-info/LICENSE,sha256=eEH8mWZW49YMpl4Sh5MtKqkZ8aVTzKQXiNPEnvL14ns,1070
134
+ unrealon-2.0.18.dist-info/METADATA,sha256=4ZbL_y4HvYIVitOLpv5tv_t1rShk85_TUVMGnJ0osa8,15718
135
+ unrealon-2.0.18.dist-info/WHEEL,sha256=pL8R0wFFS65tNSRnaOVrsw9EOkOqxLrlUPenUYnJKNo,91
136
+ unrealon-2.0.18.dist-info/entry_points.txt,sha256=tBJgozewpyuXznEYIsLwfE1s16VRjy3Wizhuyh26zb4,153
137
+ unrealon-2.0.18.dist-info/top_level.txt,sha256=qN6Q72fe4_i8mTOhYcO3fhGa3g4dmBgvZOsqmK4j8D8,66
138
+ unrealon-2.0.18.dist-info/RECORD,,
@@ -175,8 +175,13 @@ except Exception as e:
175
175
 
176
176
  # Playwright version
177
177
  try:
178
- result = subprocess.run([sys.executable, "-m", "playwright", "--version"],
178
+ # Try new way first
179
+ result = subprocess.run([sys.executable, "-c", "import playwright; print(getattr(playwright, '__version__', 'Unknown'))"],
179
180
  capture_output=True, text=True)
181
+ if "Unknown" in result.stdout:
182
+ # Fallback to CLI version
183
+ result = subprocess.run([sys.executable, "-m", "playwright", "--version"],
184
+ capture_output=True, text=True)
180
185
  info['playwright_version'] = result.stdout.strip()
181
186
  except:
182
187
  info['playwright_version'] = "Not installed"
@@ -98,8 +98,11 @@ def _create_batch_files(parser_name: str):
98
98
  """Create Windows batch files using Jinja2 templates."""
99
99
  print("🪟 Creating Windows batch files...")
100
100
 
101
- # Detect parser config
102
- config = _detect_parser_config()
101
+ # Simple default config - no file reading needed
102
+ config = {
103
+ 'browsers_needed': ['chromium'],
104
+ 'supports_persistent': True # Assume all parsers support persistent mode
105
+ }
103
106
 
104
107
  # Create template engine
105
108
  engine = TemplateEngine()
@@ -117,28 +120,3 @@ def _create_batch_files(parser_name: str):
117
120
  print("✅ Created START.bat, QUICK_RUN.bat, TEST.bat")
118
121
 
119
122
 
120
- def _detect_parser_config() -> Dict[str, Any]:
121
- """Detect parser configuration from files."""
122
- config = {
123
- 'browsers_needed': ['chromium'],
124
- 'proxy_support': False,
125
- 'supports_persistent': False
126
- }
127
-
128
- # Check main.py for persistent mode support
129
- if Path("main.py").exists():
130
- main_content = Path("main.py").read_text()
131
- if "--persistent" in main_content:
132
- config['supports_persistent'] = True
133
-
134
- # Check for proxy config
135
- if Path("src/proxy_config.py").exists() or Path("proxy_config.py").exists():
136
- config['proxy_support'] = True
137
-
138
- # Check pyproject.toml for browser requirements
139
- if Path("pyproject.toml").exists():
140
- toml_content = Path("pyproject.toml").read_text()
141
- if "firefox" in toml_content.lower():
142
- config['browsers_needed'].append('firefox')
143
-
144
- return config
@@ -31,8 +31,8 @@ class TemplateEngine:
31
31
  'config': config,
32
32
  'config_json': json.dumps(config, indent=None),
33
33
  'browsers_list': ', '.join(config.get('browsers_needed', ['chromium'])),
34
- 'has_proxy': config.get('proxy_support', False),
35
- 'has_persistent': config.get('supports_persistent', False)
34
+ 'has_proxy': False, # Removed proxy support detection
35
+ 'has_persistent': config.get('supports_persistent', True) # Default to True
36
36
  }
37
37
 
38
38
  return template.render(**context)