crawl

package
v0.0.0-...-4cee36d Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountMedia

func AccountMedia(postst *Post, id string, body []byte)

Types

type Items

type Items struct {
	After string
	Posts []Post
	Total int
}

func GetItems

func GetItems(posts gjson.Result, body []byte) (items Items)

type Post

type Post struct {
	Created     int64
	Attachments []string
}

type User

type User struct {
	Username string
	UserID   string
	GroupID  string
}

type UserContent

type UserContent struct {
	Username string
	Posts    []Post
	Total    int
}

func Crawl

func Crawl(contxt *context.Context) ([]UserContent, error)

func GetMessages

func GetMessages(contxt *context.Context) (usercontent []UserContent)

func GetPosts

func GetPosts(contxt *context.Context) []UserContent

Jump to

Keyboard shortcuts

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