hacks/tweetbackup/go/main.go

18 lines
304 B
Go
Raw Normal View History

2022-01-08 02:07:25 +00:00
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))
}