Documentation
¶
Overview ¶
wordpressxml provides WordPress XML parser with metadata
wordpressxml provides WordPress XML parser with metadata
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Author ¶
type Author struct {
AuthorID int `xml:"author_id"`
AuthorLogin string `xml:"author_login"`
AuthorEmail string `xml:"author_email"`
AuthorDisplayName string `xml:"author_display_name"`
AuthorFirstName string `xml:"author_first_name"`
AuthorLastName string `xml:"author_last_name"`
AuthorArticles []ItemThin `xml:"-"`
}
Author is the WordPress XML author object.
type Comment ¶
type Comment struct {
ID int `xml:"comment_id"`
Parent int `xml:"comment_parent"`
Author string `xml:"comment_author"`
AuthorEmail string `xml:"comment_author_email"`
AuthorURL string `xml:"comment_author_url"`
DateGmt string `xml:"comment_date_gmt"`
Content string `xml:"comment_content"`
IndentLevel int `xml:"-"`
}
type Item ¶
type Item struct {
ID int `xml:"post_id"`
Title string `xml:"title"`
Creator string `xml:"creator"`
Encoded []string `xml:"encoded"`
IsSticky int `xml:"is_sticky"`
Link string `xml:"link"`
PubDate string `xml:"pubDate"`
Description string `xml:"description"`
PostDate string `xml:"post_date"`
PostDateGmt string `xml:"post_date_gmt"`
PostName string `xml:"post_name"`
PostType string `xml:"post_type"`
Status string `xml:"status"`
Categories []Category `xml:"category"`
Comments []Comment `xml:"comment"`
Content string
PostDatetime time.Time
PubDatetime time.Time
}
Item is a WordPress XML item which can be a post, page or other object.
type ItemThin ¶
ItemThin is a WordPress XML item that is used as additional metadata in the Author object.
type WpXML ¶ added in v0.1.2
type WpXML struct {
Channel Channel `xml:"channel"`
CreatorCounts map[string]int
CreatorToIndex map[string]int
}
func (*WpXML) ArticlesMetaTable ¶ added in v0.1.2
ArticlesMetaTable generates the data to be written out as a CSV.
func (*WpXML) AuthorForLogin ¶ added in v0.1.2
AuthorForLogin returns the Author object for a given AuthorLogin or username.
func (*WpXML) AuthorsToIndex ¶ added in v0.1.2
func (*WpXML) WriteMetaCsv ¶ added in v0.1.2
WriteMetaCsv writes articles metadata as a CSV file.
Click to show internal directories.
Click to hide internal directories.