lobsters

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllHats

func GetAllHats() error

GetAllHats fetches all hats.

func GetAllTags

func GetAllTags() error

GetAllTags fetches all tags.

func GetAllUsernames

func GetAllUsernames() (usernames []string)

GetAllUsernames finds all usernames to scrape.

func Write

func Write(bs []byte, filepath string) error

Write will write bytes out into a gzipped file.

Types

type Lobster

type Lobster struct {
	Username        string `json:"username"`
	CreatedAt       string `json:"created_at"`
	IsAdmin         bool   `json:"is_admin"`
	About           string `json:"about"`
	IsModerator     bool   `json:"is_moderator"`
	Karma           int    `json:"karma"`
	AvatarURL       string `json:"avatar_url"`
	InvitedByUser   string `json:"invited_by_user"`
	GithubUsername  string `json:"github_username"`
	TwitterUsername string `json:"twitter_username"`
}

Lobster represents a user on the site.

func CollectUserData

func CollectUserData(username string) (*Lobster, error)

CollectUserData fetches data for a specific user.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL