@@ -62,28 +62,10 @@ def metadata(self, page):
62
62
'"' ,
63
63
)[0 ],
64
64
)
65
- or text .parse_datetime (
66
- text .extr (
67
- page ,
68
- '<i class="fa fa-clock-o fa-fw"></i>' ,
69
- "</li>" ,
70
- )
71
- .strip ()
72
- .split (" " , maxsplit = 1 )[1 ],
73
- format = "%Y.%m.%d %H:%M" ,
74
- utcoffset = 9 ,
75
- )
76
- ),
77
- "author" : text .extr (
78
- page ,
79
- '<i class="fa fa-user-o fa-fw"></i>' ,
80
- "</li>" ,
81
- ).strip (),
82
- "views" : text .parse_int (
83
- text .extr (page , '<i class="fa fa-desktop fa-fw"></i>' , "</li>" ).strip ().split (" " , maxsplit = 1 )[1 ],
84
65
),
66
+ "author" : text .extr (page , ' name="author" content="' , '"' ).strip ().replace (" 기자" , "" ),
85
67
"post_id" : self .post_id ,
86
- "post_url" : self .url ,
68
+ "post_url" : self .post_url ,
87
69
}
88
70
if ' name="keywords" content="' in page :
89
71
data ["tags" ] = text .extr (page , ' name="keywords" content="' , '"' ).split ("," )
@@ -97,7 +79,7 @@ def items(self):
97
79
98
80
yield Message .Directory , data
99
81
100
- article_body = text .extr (page , ' itemprop="articleBody"> ' , '<div id=" article-sns2"' )
82
+ article_body = text .extr (page , 'itemprop="articleBody"' , "</ article>" )
101
83
102
84
images = [
103
85
text .extr (figure , "<img" , ">" )
0 commit comments