Skip to content

Social media and websites checker for specific username

Notifications You must be signed in to change notification settings

NSEcho/sochecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sochecker

Check websites for specific username. It allows you to quickly query bunch of websites for specific username.

Currently, it supports:

  • Facebook
  • Instagram
  • Twitter
  • Github
  • Pinterest
  • Flick
  • OLX.ba local
  • Reddit
  • Deezer

Installation

$ go get github.com/lateralusd/sochecker

Usage

You simply need to pass the username you would like to check.

Running the sochecker testUsername will provide create the following table.

Running

Instagram Note

For the instagram, you need to create .cookies file containing the instagram cookies for your account.

You can obtain them by logging on the instagram, inspecting elements and clicking on the storage tab(Safari).

The following cookies are needed:

  • ds_user_id
  • sessionid
  • csrftoken

After you collected the cookies, fill the .cookies file like in the example below.

ds_user_id: yourID
sessionid: sessionIDValue
csrftoken: csrfToken

If you do not have .cookies file present and populated, instagram driver will return false whether user exists or does not exists.

Contributing/Extending

All it takes to write a new plugin is to create another directory under plugins/, create a .go file.

For example, if you are writing for the amazon.

$ cd plugins/
$ mkdir amazon && cd amazon
$ vim amazon.igo

Your new type needs to implement the Checker interface methods which are:

type Checker interface {
  Check(client *http.Client, name string) bool
  Info() string
  Link() string
}
  • Check(client *http.Client, name string) bool - for the username in name parameter, will return true if the user exists, or false if the user does not exist; use client parameter to make requests
  • Info() string - returns the help about specific module
  • Link() string - returns the link to the user page on the plugin

After you implemented the following methods, you need to call Register function which accepts the name of the driver and the type that implements Check interface.

import "github.com/lateralusd/sochecker/checker"

type AmazonCheck struct{}

func (ac *AmazonCheck) Check(client *http.Client, name string) bool {
  // do the logic here
  resp, err := client.Get("https://www.someurl.com")
  return false
}

func (ac *AmazonCheck) Info() string {
  return "Amazon help"
}

func (ac *AmazonCheck) Link() string {
  return "https://www.linktotheuseratamazon"
}

func init() {
  checker.Register("amazon", &AmazonCheck{})
}

About

Social media and websites checker for specific username

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages