Skip to content

xzdev/wechat-article-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wechat-article-parser

A wechat article parser wirtten in Golang

The library parse the wechat public account article ang generate a data object in the following format.

type Article struct {
	Title       string   `json:"title"`
	Author      string   `json:"author"`
	Url         string   `json:"url"`
	Summary     string   `json:"summary"`
	Photos      []string `json:"photos"`
	Readtime    int64    `json:"readtime"`
	Publishtime int64    `json:"publishtime"`
}

Example

package main

import (
	"log"

	"github.com/xzdev/wechat-article-parser"
)

func main() {
	article := parser.ParseArticle("http://mp.weixin.qq.com/wechat-article-url-here")
	log.Println(article.Title, article.Summary)
}

License

This library is under the MIT License

About

A wechat article parser wirtten in Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages