{"id":25269854,"url":"https://github.com/datadiggerjay/serp-results_scrappig","last_synced_at":"2025-07-29T08:07:56.874Z","repository":{"id":275582760,"uuid":"926523638","full_name":"DataDiggerJay/SERP-results_scrappig","owner":"DataDiggerJay","description":"The Google Sheets Search Query Processor automates fetching top Google search results for queries stored in a Google Sheet. It integrates SerpAPI for search results and Google Sheets API for data handling, ensuring seamless updates while skipping processed queries and unwanted domains.","archived":false,"fork":false,"pushed_at":"2025-02-04T13:18:05.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T12:49:42.364Z","etag":null,"topics":["api","automation","python","serp","serp-api","web-scraping"],"latest_commit_sha":null,"homepage":"https://github.com/DataDiggerJay/SERP-results_scrappig","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DataDiggerJay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-03T12:09:41.000Z","updated_at":"2025-02-04T13:20:04.000Z","dependencies_parsed_at":"2025-02-03T13:26:26.225Z","dependency_job_id":"31d6fdca-df92-4a30-9c40-900c083d101a","html_url":"https://github.com/DataDiggerJay/SERP-results_scrappig","commit_stats":null,"previous_names":["datadiggerjay/serp-results_scrappig"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DataDiggerJay/SERP-results_scrappig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataDiggerJay%2FSERP-results_scrappig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataDiggerJay%2FSERP-results_scrappig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataDiggerJay%2FSERP-results_scrappig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataDiggerJay%2FSERP-results_scrappig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DataDiggerJay","download_url":"https://codeload.github.com/DataDiggerJay/SERP-results_scrappig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataDiggerJay%2FSERP-results_scrappig/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267652744,"owners_count":24122097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","automation","python","serp","serp-api","web-scraping"],"created_at":"2025-02-12T11:20:05.686Z","updated_at":"2025-07-29T08:07:56.851Z","avatar_url":"https://github.com/DataDiggerJay.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Google Sheets Search Query Processor\n\n## 📖 Overview\nThis project automates the process of fetching top search results from Google based on search queries stored in a Google Sheet. It utilizes **SerpAPI** for search results and **Google Sheets API** for reading and writing data.\n\n## 🚀 Features\n- Reads search queries from a Google Sheet.\n- Fetches top search results using **SerpAPI**.\n- Stores the results in adjacent columns in the same sheet.\n- Skips already processed rows and unwanted domains.\n- Configurable to retrieve more than 2 results.\n\n## 📋 Requirements\n- Python 3.7+\n- A **Google Cloud** service account with Sheets API enabled.\n- A **SerpAPI** key.\n\n## 📂 Installation\n\n1. **Clone this repository**:\n   ```sh\n   git clone https://github.com/DataDiggerJay/SERP-results_scrappig\n   cd your-repo\n   ```\n\n2. **Create a virtual environment (optional but recommended)**:\n   ```sh\n   python -m venv venv\n   source venv/bin/activate  # For Windows: venv\\Scripts\\activate\n   ```\n\n3. **Install dependencies**:\n   ```sh\n   pip install -r requirements.txt\n   ```\n\n## 🔑 Setup\n\n### **1. Enable Google Sheets API**\n- Go to [Google Cloud Console](https://console.cloud.google.com/)\n- Create a new project (or use an existing one).\n- Enable **Google Sheets API** and **Google Drive API**.\n- Create a **service account**, download the JSON key file, and place it in your project folder.\n\n### **2. Share Your Google Sheet**\n- Open your Google Sheet.\n- Share it with the service account email found in the JSON file.\n\n### **3. Get a SerpAPI Key**\n- Sign up at [SerpAPI](https://serpapi.com/).\n- Generate an API key and store it securely.\n\n## ⚙️ Configuration\n- Update the `script.py` script:\n  ```python\n  SERP_API_KEY = \"your_api_key_here\"  # Replace with your actual API key\n  ```\n- Update the Google Sheets credentials file path:\n  ```python\n  creds = ServiceAccountCredentials.from_json_keyfile_name(\"path/to/your/credentials.json\", scope)\n  ```\n- Modify `START_ROW` and `NUM_ROWS` to process specific rows in the sheet.\n\n## 🏃‍♂️ Running the Script\nExecute the script with:\n```sh\npython script.py\n```\n\n## 🛠️ Customization\n### **To get more than 2 results**\nModify the `num_results` variable in `script.py`:\n```python\nnum_results = 5  # Fetch 5 results instead of 2\n```\nEnsure your Google Sheet has enough columns to store additional results.\n\n## 🤝 Contributing\nFeel free to submit **pull requests** or open **issues** for improvements.\n\n## 📜 License\nThis project is licensed under the **MIT License**.\n\n## ✨ Author\n[Jayesh Berde](https://github.com/DataDiggerJay)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatadiggerjay%2Fserp-results_scrappig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatadiggerjay%2Fserp-results_scrappig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatadiggerjay%2Fserp-results_scrappig/lists"}