[livedoor] return 'date' as datetime object
This commit is contained in:
@@ -42,9 +42,10 @@ class LivedoorExtractor(Extractor):
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
"id" : text.parse_int(extr("id : '", "'")),
|
"id" : text.parse_int(extr("id : '", "'")),
|
||||||
"title" : extr("title : '", "'"),
|
"title" : text.unescape(extr("title : '", "'")),
|
||||||
"categories": [extr("name:'", "'"), extr("name:'", "'")],
|
"categories": [extr("name:'", "'"), extr("name:'", "'")],
|
||||||
"date" : extr("date : '", "'"),
|
"date" : text.parse_datetime(
|
||||||
|
extr("date : '", "'"), "%Y-%m-%d %H:%M:%S"),
|
||||||
"tags" : text.split_html(tags),
|
"tags" : text.split_html(tags),
|
||||||
"user" : self.user,
|
"user" : self.user,
|
||||||
"body" : body,
|
"body" : body,
|
||||||
@@ -87,7 +88,7 @@ class LivedoorBlogExtractor(LivedoorExtractor):
|
|||||||
"keyword": {
|
"keyword": {
|
||||||
"post": {
|
"post": {
|
||||||
"categories": list,
|
"categories": list,
|
||||||
"date": str,
|
"date": "type:datetime",
|
||||||
"id": int,
|
"id": int,
|
||||||
"tags": list,
|
"tags": list,
|
||||||
"title": str,
|
"title": str,
|
||||||
|
|||||||
Reference in New Issue
Block a user