Skip to content

bazuker/browserbro-go-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrowserBro Golang API Client

Golang client for BrowserBro API.

go get -u github.com/bazuker/browserbro-go-api

Example

package main

import (
    "fmt"
    "github.com/bazuker/browserbro-go-api/client"
)

func main() {
    c, err := client.New("http://localhost:10001", nil)
    if err != nil {
        fmt.Println("failed to create client:", err)
        return
    }
    output, err := c.RunPlugin("googlesearch", map[string]any{
        "query": "latest Golang news",
    })
    if err != nil {
        fmt.Println("failed to run plugin:", err)
        return
    }
    fmt.Println(output)
}