This project compares search engine result outputs between Bing and Google using Python scripts powered by LangChain and official APIs. It's designed to collect and analyze search results to evaluate differences in ranking, content, and relevancy.
- Query Bing and Google using their respective APIs
- Save search results to CSV for comparison
- Use LangChain for streamlined integration
- Customizable for future NLP or LLM-based ranking/evaluation
BingSearch.py: Queries Bing and saves results toBingDataframe.csvSIPFORREAL.py: Queries Google using LangChain's wrappertestSIP.py: Uses Google's Custom Search API directlyBingDataframe.csv,sip.csv: Sample outputs
- Set up your API keys in environment variables or replace them in the code.
- Run each script to collect search results.
- Analyze the data using CSVs or expand with NLP tools.
Install dependencies with:
pip install -r requirements.txt
langchainpandasgoogle-api-python-client