~blurtr/blurtr/trunk

« back to all changes in this revision

Viewing changes to go/feed.go

  • Committer: Martin Pool
  • Date: 2011-08-14 12:01:12 UTC
  • Revision ID: mbp@canonical.com-20110814120112-7ub7d2a57ptcpz0a
Parse out more posts from tumblr

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
package feed
2
2
 
3
 
type TumblrPosts struct {
4
 
        PostStart       int     "posts>start"
5
 
        PostCount       int     "posts>total"
 
3
type Post struct {
 
4
        Id              string  `xml:"attr"`
 
5
        URL             string  `xml:"attr"`
 
6
        Type            string  `xml:"attr"`
 
7
        Title           string  `xml:"attr"`
 
8
        Date            string  `xml:"attr"`
 
9
        Width           int     `xml:"attr"`
 
10
        Height          int     `xml:"attr"`
 
11
}
 
12
 
 
13
type Posts struct {
 
14
        Start           int     `xml:"attr"`
 
15
        Total           int     `xml:"attr"`
 
16
        Post            []Post
 
17
}
 
18
 
 
19
type Tumblr struct {
 
20
        Version         string  `xml:"attr"`
 
21
        Posts           Posts   `xml:"posts"`
6
22
}
7
23
 
8
24