Documentation
¶
Overview ¶
Package weibo is the library behind the weibo command: the HTTP client, request shaping, and the typed data models for Weibo hot search.
The client fetches the public hot-search JSON endpoint at https://weibo.com/ajax/side/hotSearch. No authentication or cookies are required. It sets a real User-Agent and Referer, paces requests, and retries transient 429/5xx errors with exponential backoff.
Index ¶
Constants ¶
View Source
const DefaultUserAgent = "" /* 169-byte string literal not displayed */
DefaultUserAgent identifies the client to Weibo.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client talks to the Weibo public API.
Click to show internal directories.
Click to hide internal directories.