Versions in this module Expand all Collapse all v1 v1.0.6 Oct 21, 2023 Changes in this version + func CreatePaginator(base, ending string, current_page, max_page int) template.HTML + func ParseTime(date time.Time) string v1.0.5 Oct 13, 2023 Changes in this version + func ParseEmojis(s string) template.HTML + func ParsePixivRedirect(s string) template.HTML v1.0.4 Aug 28, 2023 Changes in this version + const ArtworkCommentsURL + const ArtworkDiscoveryURL + const ArtworkImagesURL + const ArtworkInformationURL + const ArtworkNewestURL + const ArtworkRankingURL + const ArtworkRelatedURL + const FrequentTagsURL + const LandingPageURL + const NewestFromFollowURL + const SearchArtworksURL + const SearchTagURL + const SearchTopURL + const UserArtworksFullURL + const UserArtworksURL + const UserBasicInformationURL + const UserBookmarksURL + const UserInformationURL + func GetRandomColor() string + func GetTemplateFunctions() template.FuncMap + type PixivClient struct + Client *http.Client + Cookie map[string]string + Header map[string]string + Lang string + func (p *PixivClient) AddCookie(key, value string) + func (p *PixivClient) AddHeader(key, value string) + func (p *PixivClient) GetArtworkByID(id string) (*models.Illust, error) + func (p *PixivClient) GetArtworkComments(id string) ([]models.Comment, error) + func (p *PixivClient) GetArtworkImages(id string) ([]models.Image, error) + func (p *PixivClient) GetDiscoveryArtwork(mode string, count int) ([]models.IllustShort, error) + func (p *PixivClient) GetFrequentTags(ids string) ([]models.FrequentTag, error) + func (p *PixivClient) GetLandingPage(mode string) (models.LandingArtworks, error) + func (p *PixivClient) GetNewestArtworks(worktype string, r18 string) ([]models.IllustShort, error) + func (p *PixivClient) GetNewestFromFollowing(mode, page, token string) ([]models.IllustShort, error) + func (p *PixivClient) GetRanking(mode string, content string, date string, page string) (models.RankingResponse, error) + func (p *PixivClient) GetRankingLog(mode string, year, month int, image_proxy string) (template.HTML, error) + func (p *PixivClient) GetRelatedArtworks(id string) ([]models.IllustShort, error) + func (p *PixivClient) GetSearch(artworkType string, name string, order string, age_settings string, ...) (*models.SearchResult, error) + func (p *PixivClient) GetTagData(name string) (models.TagDetail, error) + func (p *PixivClient) GetUserArtworks(id string, ids string) ([]models.IllustShort, error) + func (p *PixivClient) GetUserArtworksID(id string, category string, page int) (string, int, error) + func (p *PixivClient) GetUserBasicInformation(id string) (models.UserShort, error) + func (p *PixivClient) GetUserBookmarks(id string, mode string, page int) ([]models.IllustShort, int, error) + func (p *PixivClient) GetUserInformation(id string, category string, page int) (*models.User, error) + func (p *PixivClient) PixivRequest(URL string, tokens ...string) (json.RawMessage, error) + func (p *PixivClient) Request(URL string, token ...string) (*http.Response, error) + func (p *PixivClient) SetCookie(cookie map[string]string) + func (p *PixivClient) SetHeader(header map[string]string) + func (p *PixivClient) SetLang(lang string) + func (p *PixivClient) SetSessionID(value string) + func (p *PixivClient) SetUserAgent(value string) + func (p *PixivClient) TextRequest(URL string, tokens ...string) (string, error)