Socket
Book a DemoInstallSign in
Socket

seo-hero

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seo-hero

Become a real SEO Hero by scraping the TOP 100 on google.com search results.

1.0.7
latest
npmnpm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

Description

SEO Hero is a basic tool to scrape TOP 100 google search results on any keywords. Feel free to contribute to this project by contacting me.

Requirements

This package only uses three libraries dependencies to make it works :

  • "Request" to make http request
  • "Cheerio" to parse the HTML response
  • "Q" : to handle callback

Demo

Basically, the package is searching for the results about a keyword on the first page of google and return you an array about what he found. For instance, if you're looking results for seo hero keyword, create a search.js file and then :

var HeroScraper = require('./seo-hero');

HeroScraper.scrap("seo hero", function (error, result) {
    console.log(result);
});

This is going to return you an array of result objects ordered by ranking position (from the 1rst to the 100th) :

[
    {
        title: 'Wix SEO Hero Challenge - Can You Outrank Them?',
        url: 'https://www.seroundtable.com/wix-seo-hero-challenge-23020.html',
        description: 'Nov 21, 2016 ... To combat that negative branding, Wix launched a contest where if you outrank \nthem         for the term [seo hero] in Google, they will give you...'
    },
    {
        title: 'Wix SEO Hero Contest | Support Center | Wix.com',
        url: 'https://www.wix.com/support/html5/article/wix-seo-hero-contest',
        description: 'We\'re going to create a new Wix site optimized with the search term “SEO Hero”. \nYou\'re invited to create your own site (you can use any platform). If your site...'
    },
    {
        ...
    }
]

Keywords

seo hero

FAQs

Package last updated on 02 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.