webtools-cli 1.0.7__tar.gz → 1.0.9__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.7
3
+ Version: 1.0.9
4
4
  Summary: Advanced Web Intelligence & Scraping Toolkit with CLI and Web UI
5
5
  Author: Abhinav Adarsh
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "webtools-cli"
7
- version = "1.0.7"
7
+ version = "1.0.9"
8
8
  description = "Advanced Web Intelligence & Scraping Toolkit with CLI and Web UI"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -623,6 +623,7 @@ def ensure_playwright():
623
623
 
624
624
  def ensure_textblob_corpora():
625
625
  """Ensure necessary NLTK corpora for TextBlob are downloaded"""
626
+ needed = ['punkt', 'brown', 'averaged_perceptron_tagger', 'wordnet', 'omw-1.4', 'conll2000', 'stopwords']
626
627
  try:
627
628
  import nltk
628
629
  # OFFICIAL TEXTBLOB DOWNLOAD COMMAND (Ensures all defaults are met)
@@ -634,7 +635,6 @@ def ensure_textblob_corpora():
634
635
  else: print("🧠 Fetching AI Intelligence Datasets...")
635
636
  subprocess.run([sys.executable, "-m", "textblob.download_corpora"], check=False)
636
637
 
637
- needed = ['punkt', 'brown', 'averaged_perceptron_tagger', 'wordnet', 'omw-1.4', 'conll2000', 'stopwords']
638
638
  for corpus in needed:
639
639
  try:
640
640
  # Check for tokenizer or general data
@@ -649,8 +649,8 @@ def ensure_textblob_corpora():
649
649
  except:
650
650
  nltk.data.find(f'corpora/{corpus}.zip')
651
651
  except (LookupError, AttributeError):
652
- from webtools.core import Fore # Reuse branding colors if available
653
- print(f"📦 Installing AI Intelligence Data: {corpus}...")
652
+ if COLOR_SUPPORT: print(f"{Fore.CYAN}📦 Installing AI Intelligence Data: {corpus}...{Style.RESET_ALL}")
653
+ else: print(f"📦 Installing AI Intelligence Data: {corpus}...")
654
654
  nltk.download(corpus, quiet=True)
655
655
  except Exception as e:
656
656
  print(f"⚠️ AI Data Error: Could not download {needed}. AI features may be limited. ({e})")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: webtools-cli
3
- Version: 1.0.7
3
+ Version: 1.0.9
4
4
  Summary: Advanced Web Intelligence & Scraping Toolkit with CLI and Web UI
5
5
  Author: Abhinav Adarsh
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes