2023-04-07 06:56:18 +00:00
|
|
|
package main
|
|
|
|
|
2023-04-19 22:20:46 +00:00
|
|
|
import "time"
|
|
|
|
|
2023-04-07 06:56:18 +00:00
|
|
|
func main() {
|
2023-04-19 22:20:46 +00:00
|
|
|
for {
|
|
|
|
stories := FetchHackerNewsTopStories()
|
|
|
|
filtered := CurateContentForStackerNews(&stories)
|
|
|
|
for _, story := range *filtered {
|
|
|
|
PostStoryToStackerNews(&story)
|
|
|
|
}
|
|
|
|
time.Sleep(time.Hour)
|
2023-04-07 06:56:18 +00:00
|
|
|
}
|
|
|
|
}
|