A simple Python-based custom search engine that uses the Exa API to perform semantic web searches using Large Language Models (LLMs). Unlike traditional keyword-based search, this engine understands the context of your query for more relevant results.
- Semantic search using Exa's LLM-powered API
- Clean CLI output: only titles and URLs
- Filter by number of results and domain (e.g., TikTok, GitHub, Twitter)
- Easily customizable for personal or research use
- Python 3.10+
- Exa API Key (Free with 1000 monthly requests)
- Clone the repository:
git clone https://github.com/your-username/custom-search-engine-exa.git cd custom-search-engine-exa
2.Install the Exa Python SDK:
pip install exa_py3.Add your API key: Open main.py and replace 'YOUR_KEY_HERE' with your actual key:
exa = Exa('your-api-key')4.Run the app:
python3 main.pySearch here: best Python tutorials Title: 10 Best Python Tutorials for Beginners URL: https://example.com/python-tutorials
Title: Learn Python – Full Course for Beginners URL: https://example.com/learn-python
🔧 Customization Tips Change num_results to show more or fewer search results.
Use include_domains=['https://www.tiktok.com'] to limit results to specific sites.
Use category='tweet' or category='papers' for domain-specific filtering.
Made with ❤️ using Exa.ai
