Documentation
¶
Overview ¶
Package weibo fetches Weibo user profile data using authenticated session cookies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthRequired ¶
func AuthRequired() bool
AuthRequired returns true because Weibo requires authentication.
func ExtractUsername ¶
ExtractUsername extracts the username from a Weibo URL.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles Weibo requests with authenticated cookies.
type Option ¶
type Option func(*config)
Option configures a Client.
func WithBrowserCookies ¶
func WithBrowserCookies() Option
WithBrowserCookies enables reading cookies from browser stores.
func WithCookies ¶
WithCookies sets explicit cookie values.
func WithHTTPCache ¶
WithHTTPCache sets the HTTP cache.
Click to show internal directories.
Click to hide internal directories.