webtools-cli 1.0.3__tar.gz → 1.0.4__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: webtools-cli
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: Advanced Web Intelligence & Scraping Toolkit with CLI and Web UI
5
5
  Author: Abhinav Adarsh
6
6
  License-Expression: MIT
@@ -39,7 +39,7 @@ Dynamic: license-file
39
39
  [![License](https://img.shields.io/github/license/abhinavgautam08/webtools-cli)](https://github.com/abhinavgautam08/webtools-cli/blob/main/LICENSE)
40
40
  [![Python Version](https://img.shields.io/badge/python-3.9+-blue?logo=python&logoColor=white)](https://pypi.org/project/webtools-cli/)
41
41
 
42
- ![WebTools CLI Interface](CLI.png)
42
+ ![WebTools CLI Interface](https://i.postimg.cc/7LXjQqBm/CLI.png)
43
43
 
44
44
  WebTools CLI is an advanced web intelligence suite for researchers, OSINT enthusiasts, and developers. It brings the power of deep web analysis and automated scraping directly into your terminal, bridging the gap between a high-speed **Terminal UI** and a feature-rich **Cyber-themed Dashboard**.
45
45
 
@@ -4,7 +4,7 @@
4
4
  [![License](https://img.shields.io/github/license/abhinavgautam08/webtools-cli)](https://github.com/abhinavgautam08/webtools-cli/blob/main/LICENSE)
5
5
  [![Python Version](https://img.shields.io/badge/python-3.9+-blue?logo=python&logoColor=white)](https://pypi.org/project/webtools-cli/)
6
6
 
7
- ![WebTools CLI Interface](CLI.png)
7
+ ![WebTools CLI Interface](https://i.postimg.cc/7LXjQqBm/CLI.png)
8
8
 
9
9
  WebTools CLI is an advanced web intelligence suite for researchers, OSINT enthusiasts, and developers. It brings the power of deep web analysis and automated scraping directly into your terminal, bridging the gap between a high-speed **Terminal UI** and a feature-rich **Cyber-themed Dashboard**.
10
10
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "webtools-cli"
7
- version = "1.0.3"
7
+ version = "1.0.4"
8
8
  description = "Advanced Web Intelligence & Scraping Toolkit with CLI and Web UI"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -799,8 +799,9 @@ def execute_scrape_logic(url, fetch_images=False, fetch_videos=False, crawl_dept
799
799
  response = requests.get(url, headers=headers, timeout=30)
800
800
  else:
801
801
  # Direct Request (SPA Check ke sath)
802
- if 'linkedin.com' in url or 'instagram.com' in url:
803
- print("⚠️ SPA Pattern Detected (LinkedIn/Instagram). Skipping requests...")
802
+ block_domains = ['linkedin.com', 'instagram.com', 'facebook.com', 'twitter.com', 'x.com', 'xhamster', 'pornhub', 'xnxx']
803
+ if any(domain in url.lower() for domain in block_domains):
804
+ print(f"⚠️ High-Security Domain detected. Skipping direct requests...")
804
805
  response = None # Playwright force karo
805
806
  else:
806
807
  response = requests.get(url, headers=headers, timeout=30)
@@ -833,7 +834,12 @@ def execute_scrape_logic(url, fetch_images=False, fetch_videos=False, crawl_dept
833
834
  else:
834
835
  return {'success': False, 'error': f'Request failed and Playwright fallback failed: {str(e)}'}
835
836
  else:
836
- return {'success': False, 'error': f'Request failed: {str(e)}'}
837
+ error_msg = f"Request failed: {str(e)}"
838
+ if response and response.status_code == 404:
839
+ error_msg += "\n💡 Tip: URL might be expired or the site is blocking direct requests. Install Playwright for better results: pip install webtools-cli[playwright]"
840
+ else:
841
+ error_msg += "\n💡 Tip: Try installing Playwright for better bypassing: pip install webtools-cli[playwright]"
842
+ return {'success': False, 'error': error_msg}
837
843
 
838
844
  soup = BeautifulSoup(response.text, 'html.parser')
839
845
  perf_tracker.record_phase("HTML Parsing")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: webtools-cli
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: Advanced Web Intelligence & Scraping Toolkit with CLI and Web UI
5
5
  Author: Abhinav Adarsh
6
6
  License-Expression: MIT
@@ -39,7 +39,7 @@ Dynamic: license-file
39
39
  [![License](https://img.shields.io/github/license/abhinavgautam08/webtools-cli)](https://github.com/abhinavgautam08/webtools-cli/blob/main/LICENSE)
40
40
  [![Python Version](https://img.shields.io/badge/python-3.9+-blue?logo=python&logoColor=white)](https://pypi.org/project/webtools-cli/)
41
41
 
42
- ![WebTools CLI Interface](CLI.png)
42
+ ![WebTools CLI Interface](https://i.postimg.cc/7LXjQqBm/CLI.png)
43
43
 
44
44
  WebTools CLI is an advanced web intelligence suite for researchers, OSINT enthusiasts, and developers. It brings the power of deep web analysis and automated scraping directly into your terminal, bridging the gap between a high-speed **Terminal UI** and a feature-rich **Cyber-themed Dashboard**.
45
45
 
File without changes
File without changes