diff options
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | main.go | 5 |
2 files changed, 5 insertions, 3 deletions
@@ -1 +1,2 @@ -*.xml
\ No newline at end of file +*.xml +piupiu
\ No newline at end of file @@ -129,6 +129,7 @@ func fetch(id, token string) ([]Tweet, error) { startTime := time.Now().UTC().Add(-24 * time.Hour).Format(time.RFC3339) q.Set("start_time", startTime) q.Set("tweet.fields", "created_at,text") + q.Set("exclude", "replies") u.RawQuery = q.Encode() req, err := http.NewRequest("GET", u.String(), nil) @@ -168,8 +169,8 @@ func main() { output := flag.String("o", ".", "Directory where RSS files will be dropped") flag.Parse() - // This, of course, cursed in unholy ways, as path sanitization shenanigans - // have proved since the existence of the concept of a path in operating + // This is cursed in unholy ways, as path sanitization shenanigans have + // proved since the existence of the concept of a path in operating // systems. That being said, I'm the sole user of this, so whatever... if *output != "." { if err := os.MkdirAll(*output, 0755); err != nil { |
