hacks/tweetbackup/go/main.go
2022-01-07 18:07:25 -08:00

18 lines
304 B
Go

package main
import (
"encoding/json"
"fmt"
twitterscraper "github.com/n0madic/twitter-scraper"
)
func main() {
profile, err := twitterscraper.GetProfile("jack")
if err != nil {
panic(err)
}
prettyJSON, err := json.MarshalIndent(profile, "", " ")
fmt.Printf("%s\n", string(prettyJSON))
}