preset scraper added
This commit is contained in:
46
types/resource/scnlog.go
Normal file
46
types/resource/scnlog.go
Normal file
@@ -0,0 +1,46 @@
|
||||
package resource
|
||||
|
||||
import "encoding/xml"
|
||||
|
||||
type ScnLogRss struct {
|
||||
XMLName xml.Name `xml:"rss"`
|
||||
Text string `xml:",chardata"`
|
||||
Version string `xml:"version,attr"`
|
||||
Content string `xml:"content,attr"`
|
||||
Wfw string `xml:"wfw,attr"`
|
||||
Dc string `xml:"dc,attr"`
|
||||
Atom string `xml:"atom,attr"`
|
||||
Sy string `xml:"sy,attr"`
|
||||
Slash string `xml:"slash,attr"`
|
||||
Channel struct {
|
||||
Text string `xml:",chardata"`
|
||||
Title string `xml:"title"`
|
||||
Link struct {
|
||||
Text string `xml:",chardata"`
|
||||
Href string `xml:"href,attr"`
|
||||
Rel string `xml:"rel,attr"`
|
||||
Type string `xml:"type,attr"`
|
||||
} `xml:"link"`
|
||||
Description string `xml:"description"`
|
||||
LastBuildDate string `xml:"lastBuildDate"`
|
||||
Language string `xml:"language"`
|
||||
UpdatePeriod string `xml:"updatePeriod"`
|
||||
UpdateFrequency string `xml:"updateFrequency"`
|
||||
Generator string `xml:"generator"`
|
||||
Item []struct {
|
||||
Text string `xml:",chardata"`
|
||||
Title string `xml:"title"`
|
||||
Link string `xml:"link"`
|
||||
Comments string `xml:"comments"`
|
||||
Creator string `xml:"creator"`
|
||||
PubDate string `xml:"pubDate"`
|
||||
Category []string `xml:"category"`
|
||||
Guid struct {
|
||||
Text string `xml:",chardata"`
|
||||
IsPermaLink string `xml:"isPermaLink,attr"`
|
||||
} `xml:"guid"`
|
||||
Description string `xml:"description"`
|
||||
CommentRss string `xml:"commentRss"`
|
||||
} `xml:"item"`
|
||||
} `xml:"channel"`
|
||||
}
|
||||
Reference in New Issue
Block a user