- v3
http://news-at.zhihu.com/api/3/stories/latest 获取今日日报
http://news-at.zhihu.com/api/3/news/latest 获取今日日报
http://news-at.zhihu.com/api/3/news/before/20140618 获取某个日期之前的日报
| // Playbook - http://play.golang.org/p/3wFl4lacjX | |
| package main | |
| import ( | |
| "bytes" | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "crypto/rand" | |
| "encoding/base64" |
| import time | |
| from datetime import datetime, date | |
| # 今天 | |
| datetime.datetime.today().date().isoformat() | |
| # 通过日期对象生成时间戳 | |
| int(time.mktime(datetime.now().timetuple())) | |
| # 通过时间戳生成日期对象,timestamp 的时间戳以秒为单位 |