Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Domain = "fanbox.cc" CookieURL = "https://.fanbox.cc" OriginURL = "https://www.fanbox.cc" RefererURL = "https://www.fanbox.cc/" APIURL = "https://api.fanbox.cc" UserAgent = "" + "Mozilla/5.0 (X11; Linux x86_64) " + "AppleWebKit/537.36 (KHTML, like Gecko) " + "Chrome/88.0.4300.0 " + "Safari/537.36" )
Functions ¶
func PostImageURL ¶
PostImageURL returns the direct link to the image in JPEG format.
Types ¶
type ArticleBody ¶
type ArticleBody struct {
Blocks []ArticleBodyBlock `json:"blocks"`
ImageMap map[string]Image `json:"imageMap"`
}
type ArticleBodyBlock ¶
type DateTime ¶
func (*DateTime) UnmarshalJSON ¶
type Item ¶
func (*Item) UnmarshalJSON ¶
type ItemBase ¶
type ItemBase struct {
ID string `json:"id"`
Title string `json:"title"`
Type ItemType `json:"type"`
CoverImageURL string `json:"coverImageUrl"`
FeeRequired int `json:"feeRequired"`
PublishedDateTime DateTime `json:"publishedDatetime"`
UpdatedDateTime DateTime `json:"updatedDatetime"`
Excerpt string `json:"excerpt"`
IsLiked bool `json:"isLiked"`
LikeCount int `json:"likeCount"`
CommentCount int `json:"commentCount"`
User User `json:"user"`
CreatorID string `json:"creatorId"`
HasAdultContent bool `json:"hasAdultContent"`
Status string `json:"status"`
}
type Session ¶
type Session struct {
*SessionClient
}
Session is a Pixiv user session. It is copyable.
func (*Session) SupportingPosts ¶
SupportingPosts returns the first 10 posts in the homepage, except it only shows creators that the user is supporting.
type SessionClient ¶
SessionClient contains methods to request with the required cookies.
func NewSessionClient ¶
func NewSessionClient() *SessionClient
func (*SessionClient) Download ¶
func (sc *SessionClient) Download(url string) (body io.ReadCloser, err error)
func (*SessionClient) Get ¶
func (sc *SessionClient) Get(url string, v interface{}) error
Click to show internal directories.
Click to hide internal directories.