Coder Social home page Coder Social logo

simple_serp_aggregator's Introduction

Simple SERP Aggregator

This was created as a quick way to find common recommendations for things like 'Best SEO Software'. Typically I would visit a handful of 'Top 10' lists from the first page of google search results, and make note of the recommendations that we made most frequently. This automates that process, by scraping the top search results for any particular query, and showing the most common text within header tags in the HTML.

Installation

  1. install Python 3.10 or later
  2. type 'pip install -r requirements.txt' from a command line in the installation directory

You will need an API key from ScaleSERP.com (free for some limited usage; currently 125 free searches per month).

If you don't want to keep entering your API key for each search, create a .env file in the home directory and add this line: SCALE_SERP_API_KEY=add_your_api_key_here

Usage

  1. Type 'python main.py' from a terminal in the installation directory
  2. Enter your search query (ie. 'Best Lead Generation Software')
  3. Enter the number of sites you would like to scrape. (ie if you enter 50, it will scrape the first 50 results from Google)

Results

The results aren't perfect, as you'll need to filter out some common headings that aren't names of products. For example, in the list of results in the below image, 'pros' and 'cons' are not likely what you're looking for, but 'tapfiliate', 'post affiliate pro', etc are valid, seemingly popular products.

Sample of results

Click the google link to do a web search for the respective result. The number in brackets is the number of occurrences in all scraped pages.

How to find web design clients

Shameless plug! I've created the best way to find new clients for web design agencies. Grape Leads is a powerful marketing tool that helps connect agency owners, marketers and freelancers with the clients who need their services the most. Find businesses without websites and your next clients: How to Find Businesses without Websites

simple_serp_aggregator's People

Contributors

spencershepard avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.