AI-Powered Web Search & Reasoning Engine
A sophisticated Python tool that performs deep web searches with advanced analysis, credibility scoring, sentiment analysis, and semantic reasoning. Features both CLI and beautiful GUI interfaces.
- Multi-source Search: DuckDuckGo integration for ethical, privacy-respecting searches
- Smart Crawling: Respects
robots.txtand implements polite rate limiting - Parallel Processing: Non-blocking threading for responsive UI
- Content Extraction: Advanced HTML parsing with readability optimization
- Credibility Scoring: Domain reputation, content quality, spam detection
- Sentiment Analysis: Polarity and subjectivity measurement
- Named Entity Recognition (NER): Extracts persons, organizations, locations, products
- Keyphrases Extraction: Identifies top topics and their frequency
- Language Detection: Automatic language identification
- Readability Metrics: Sentence complexity and readability scoring
- Consensus Detection: Identifies common themes across sources
- Credibility Aggregation: Overall credibility score from multiple sources
- Topic Clustering: Groups related information automatically
- Language Distribution: Multilingual analysis support
- Source Ranking: Top credible sources highlighted
-
GUI (DeepSearchGUI.py): Beautiful dark-themed interface with:
- Real-time search progress
- Insights panel with key metrics
- Detailed analysis view
- Click-to-expand result details
- Export to JSON & CSV
-
CLI (DeepSearch.py): Command-line interface for:
- Batch processing
- Scripting integration
- Server deployment
- Python 3.10 or higher
- pip package manager
cd "C:\Users\... "pip install -r requirements.txtpython -m spacy download en_core_web_smpython -c "import customtkinter, spacy, requests; print('β All dependencies installed')"python DeepSearchGUI.pyFeatures:
- Enter search query in the search box
- Adjust search parameters (max results, fetch depth, delay)
- View real-time insights and analysis
- Click on results for detailed information
- Export results as JSON or CSV
# Basic search
python DeepSearch.py "your query"
# With options
python DeepSearch.py "your query" --max-results 20 --max-fetch 10 --delay 1.5
# Save results
python DeepSearch.py "your query" --save results.jsonOptions:
--max-results Maximum search hits to collect (default: 15)
--max-fetch Maximum pages to fetch and analyze (default: 5)
--delay Delay between fetches in seconds (default: 1.0)
--save Save JSON output to specified file
0.90+- Highly credible (academic, news, government)0.70-0.90- Credible with caveats0.50-0.70- Mixed credibility<0.50- Low credibility (spam indicators)
- Positive: Optimistic/favorable language (polarity > 0.1)
- Negative: Critical/unfavorable language (polarity < -0.1)
- Neutral: Balanced/factual language
- PERSON: Individual names
- ORG: Organizations and companies
- GPE: Geographical/political entities
- PRODUCT: Products and services
β What DeepSearch Does:
- Searches public web content only
- Respects
robots.txtand site Terms of Service - Implements polite rate limiting
- No authentication bypass
- No personal data scraping without consent
β What DeepSearch Does NOT Do:
- Access private/restricted resources
- Bypass authentication systems
- Collect personal data unethically
- Violate copyright protections
- Engage in unauthorized crawling
Always ensure you have permission and comply with local laws before using this tool for data collection.
DeepSearch/
βββ DeepSearch.py # Core search & analysis engine
βββ DeepSearchGUI.py # Beautiful GUI interface
βββ requirements.txt # Python dependencies
βββ README.md # This file
βββ results/ # (auto-created) Saved results
βββ results.json # Example export
βββ results.csv # Example export
In DeepSearchGUI.py or CLI:
# Search depth
max_results = 15 # 5-30 recommended
max_fetch = 5 # 1-10 recommended
delay = 1.0 # seconds between requestsEdit in DeepSearch.py:
CREDIBLE_DOMAINS = {
"wikipedia.org": 0.95,
"edu": 0.90,
"gov": 0.88,
"bbc.com": 0.90,
# Add more as needed
}Query: artificial intelligence ethics
=================================================================================
π― INSIGHTS:
Overall Credibility: 0.876
Key Topics: ethics, ai, machine, learning, data, regulation
Top Sources: 3
[1] β The Ethics of Artificial Intelligence
URL: https://example.com/ai-ethics
Credibility: 0.92 | Words: 2847
Sentiment: Neutral (polarity: 0.02)
Key Phrases: artificial intelligence, machine learning, ethics, regulation
Entities: ORG: OpenAI, DeepMind | PERSON: Elon Musk
[2] β AI News Today
URL: https://example.com/ai-news
Credibility: 0.65 | Words: 156
pip install ddgspython -m spacy download en_core_web_smpip install --upgrade customtkinter# Check all dependencies
pip install -r requirements.txt --upgrade- Reduce
max_fetchparameter - Increase
delayto respect rate limits - Use fewer
max_results
- Faster Searches: Reduce
max_fetchanddelay - Better Analysis: Increase
max_fetchand use smallerdelay - Batch Processing: Use CLI for multiple queries
- Memory: Works well on 4GB+ RAM machines
- Network: Ensure stable internet connection
Parameters:
query(str): Search querymax_results(int): Number of search hitsmax_fetch(int): Pages to fetch and analyzedelay(float): Seconds between requests
Returns: Dictionary with:
{
"query": "search term",
"timestamp": "2025-11-28T18:59:56",
"results": [...],
"insights": {
"overall_credibility": 0.876,
"key_topics": {...},
"top_sources": [...],
"language_distribution": {...}
}
}Found a bug? Have a feature request?
- Test thoroughly
- Document changes
- Ensure ethical compliance
- Submit with examples
MIT License - Free for personal and commercial use
DeepSearch is provided as-is for educational and research purposes. Users are responsible for:
- Complying with local laws and regulations
- Respecting website Terms of Service
- Obtaining proper permissions
- Ethical use of collected data
- Protecting privacy of individuals
The author accepts no liability for misuse.
- GraphQL support for structured queries
- Machine learning classification
- Automatic fact-checking
- Real-time collaboration
- Mobile app
- API server
- Database integration
- Advanced visualization dashboard
- π§ Email: []
- π Issues: GitHub Issues
- π¬ Discussions: GitHub Discussions
Built with:
Made with β€οΈ for researchers, developers, and curious minds.
Last Updated: December 4, 2025