Skip to content

ojasvatsyayan/search-engine-comparison

Repository files navigation

Search Engine Comparison Tool πŸ§ πŸ”

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.

πŸ”§ Features

  • 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

πŸ“ Files

  • BingSearch.py: Queries Bing and saves results to BingDataframe.csv
  • SIPFORREAL.py: Queries Google using LangChain's wrapper
  • testSIP.py: Uses Google's Custom Search API directly
  • BingDataframe.csv, sip.csv: Sample outputs

πŸš€ Getting Started

  1. Set up your API keys in environment variables or replace them in the code.
  2. Run each script to collect search results.
  3. Analyze the data using CSVs or expand with NLP tools.

πŸ§ͺ Requirements

Install dependencies with:

pip install -r requirements.txt

πŸ“š Dependencies

  • langchain
  • pandas
  • google-api-python-client

About

πŸ” A Python-based comparison of Bing and Google search engines using LangChain and official API wrappers. Collects, stores, and analyzes search result data for future use in LLM evaluation, ranking, or NLP pipelines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors