Discover Packages
github.com/jqs7/wbget
package
module
Version:
v0.0.0-...-f0eb5bf
Opens a new window with list of versions in this module.
Published: Apr 21, 2016
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
weibo get√
Example:
package main
import (
"fmt"
"github.com/jqs7/wbget"
)
func main() {
wb, _ := wbget.Get("1910069117")
fmt.Println(wb.Name)
for _, v := range wb.Posts {
fmt.Printf("%+v\n", v)
}
}
Expand ▾
Collapse ▴
Documentation
¶
View Source
const WB_BASE = "http://service.weibo.com/widget/widget_blog.php?uid=%s"
Base URL of weibo page to fetch
Post is the struct of each post of the weibo user
User is the struct of weibo user
Get the latest weibo information by the uid of user
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.