|
|
@ -47,8 +47,10 @@ class NaverPostExtractor(NaverBase, GalleryExtractor):
|
|
|
|
extr = text.extract_from(page)
|
|
|
|
extr = text.extract_from(page)
|
|
|
|
data = {
|
|
|
|
data = {
|
|
|
|
"post": {
|
|
|
|
"post": {
|
|
|
|
"title" : extr('"og:title" content="', '"'),
|
|
|
|
"title" : text.unescape(extr(
|
|
|
|
"description": extr('"og:description" content="', '"'),
|
|
|
|
'"og:title" content="', '"')),
|
|
|
|
|
|
|
|
"description": text.unescape(extr(
|
|
|
|
|
|
|
|
'"og:description" content="', '"')).replace(" ", " "),
|
|
|
|
"num" : text.parse_int(self.post_id),
|
|
|
|
"num" : text.parse_int(self.post_id),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"blog": {
|
|
|
|
"blog": {
|
|
|
|