Skip to content

A facebook bot liker and scraper without the need of any API token made with Golang.

License

Notifications You must be signed in to change notification settings

MenesesGHZ/gorip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gorip v1.5

Version Go

A tool for login into Facebook and commit basic interactions:

  • Make facebook reaction given an facebook URL.
  • Get basic information from the user logged.
  • Scrap www.facebook.com or/and mbasic.facebook.com

Example Usage

Import Gorip

import "github.com/menesesghz/gorip/fbrip"

Login into Facebook

user := fbrip.NewUserRip("mock@email","mockpass"),
isLogged := user.Rip()
if isLogged{
    /*... do actions ...*/
}

Get Basic Info

user := fbrip.NewUserRip("mock@email","mockpass"),
isLogged := user.Rip()
if isLogged{
    user.GetBasicInfo()
    fmt.Printf("\n> User: %s | Gender:[ %s ] Birthday:[ %s ]\n", user.Info.Name, user.Info.Gender, user.Info.Birthday)
 }

Make a Reaction

The reactions Id are the same that Facebook provides and are listed below:



  • "1" -> Like
  • "2" -> Love
  • "3" -> Care
  • "4" -> Haha
  • "5" -> Wow
  • "6" -> Sad
  • "7" -> Angry
fbrip.NewUser("mock@email","password"),
isLogged := user.Rip()
if isLogged {
  react := fbrip.NewReaction("2", "https://www.facebook.com/RickandMorty/photos/pcb.5282285888534857/5282285578534888/")
  success := fbrip.Do(user, react)
  if success {
    fmt.Println("You have reacted '<3' to a Rick and Morty image !")
  } else {
    fmt.Println("You haven't reacted ;(")
  }
}

Saving Facebook Scraps given Urls

user := fbrip.CreateUser("mock@email","password")
isLogged := user.Rip()
if isLogged {
    scrap_facebook := fbrip.NewScrap(
      "https://www.facebook.com/profile.php?id=100008137277101",
      "./scraps/",
      "some-name-facebook-original",
      false, // scrap from www.facebook.com
    )
    scrap_mbasic := fbrip.NewScrap(
      "https://www.facebook.com/profile.php?id=100008137277101",
      "./scraps/",
      "some-name-facebook-mbasic", // if empty string 
      true, // scrap from mbasic.facebook.com
    )
    fbrip.Do(user, scrap_facebook)
    fbrip.Do(user, scrap_mbasic)
}

rip.json template (TODO)

rip.json

Future work to implement

Actions:

  • Make post(s) in own Profile Page or given Url(s)
  • Send Random Friend Requests
  • Make Comment(s) for given Facebook post Url(s)
  • And more...

Features:

  • Create Facebook user without the need of web browser. (maybe)

Things to Improve:

  • Improve code for reading json file. (I was pretty dummie in golang at that time for reading json files lol)
  • Improve fbrip/ code structure in general.

New packages (maybe):

  • instarip (Instagram)
  • twtrip (Twitter)
  • gmailrip (Gmail) (maybe)
  • tikrip (TikTok) (maybe)

About The Project

This project is the evidence for my first serious try to Go language. I wanted to make something with it that challenges me. As you can see the code is not perfect, and it can be optimized a lot. If you are interest in improving the project, to add new cool functions or whatever. I invite you to send me a message and see what we can do. I am widely open to add colaborators to make this project better. Also I if you have any suggestion, proposal, or something that you would like to use in this package, please let me know.

About Me

A Computer Science Student at CETYS. If you want to contact me here is my email: gerardo.meneses.hz@gmail.com

Thanks to

  • My secondary account that has been banned for multiple testing requests. Rest in peace. For now...

About

A facebook bot liker and scraper without the need of any API token made with Golang.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages