diff options
author | Adam Mathes <adam@trenchant.org> | 2017-02-16 15:30:08 -0800 |
---|---|---|
committer | Adam Mathes <adam@trenchant.org> | 2017-02-16 15:30:08 -0800 |
commit | a73c843f00facf83817a907420c4497ca1613d14 (patch) | |
tree | f58c696f50d39f499005fe63ffd43965dab75054 | |
parent | a66bd5af075304d50b0033841723c6fde7e1fc7c (diff) | |
download | neko-a73c843f00facf83817a907420c4497ca1613d14.tar.gz neko-a73c843f00facf83817a907420c4497ca1613d14.tar.bz2 neko-a73c843f00facf83817a907420c4497ca1613d14.zip |
well that date stuff didnt work right at all whoops
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | crawler/crawler.go | 6 |
2 files changed, 7 insertions, 7 deletions
@@ -47,11 +47,11 @@ Postgresql support is left as an exercise for the reader to implement and send a ### Get neko code - $ go get github.com/adammathes/neko + $ go get adammathes.com/neko ### Get dependencies - $ cd $GOPATH/src/github.com/adammathes/neko + $ cd $GOPATH/src/adammathes.com/neko $ make deps or... @@ -71,11 +71,11 @@ Also there's a Makefile there so a simple "make" should work. Maybe? Makefiles a ### Create MySQL table and user - $ msyqladmin -uroot -p create neko + $ mysqladmin -uroot -p create neko $ mysql -uroot -p neko < init.sql $ echo "probably a good idea to make a limited privilege user" $ mysql -uroot -p neko - CREATE USER 'neko'@'localhost' identified by 'password' yourgreatpasswordhere; + CREATE USER 'neko'@'localhost' identified by 'yourawesomepasswordgoeshere'; GRANT ALL PRIVILEGES ON neko.* TO 'neko'@'localhost'; ### Configuration diff --git a/crawler/crawler.go b/crawler/crawler.go index 8f3108d..c352736 100644 --- a/crawler/crawler.go +++ b/crawler/crawler.go @@ -72,9 +72,9 @@ func CrawlFeed(f *feed.Feed, ch chan<- string) { item.Description = encoded } - if(i.PublishedParsed != nil) { - item.PublishDate = i.PublishedParsed.Format(time.RFC3339) - } + // if(i.PublishedParsed != nil) { + // item.PublishDate = i.PublishedParsed.Format(time.RFC3339) + // } item.FeedId = f.Id err := item.Create() if err != nil { |