[ehentai] there is no more description available
This commit is contained in:
parent
1da66673c5
commit
41599b2beb
1 changed files with 0 additions and 3 deletions
|
|
@ -67,9 +67,6 @@ class GalleryPage(Page):
|
||||||
|
|
||||||
def fill_gallery(self, gallery):
|
def fill_gallery(self, gallery):
|
||||||
gallery.title = self.document.xpath("//h1[@id='gn']/text()")[0]
|
gallery.title = self.document.xpath("//h1[@id='gn']/text()")[0]
|
||||||
description_div = self.document.xpath("//div[@id='gd71']")[0]
|
|
||||||
description_html = self.parser.tostring(description_div)
|
|
||||||
gallery.description = html2text(description_html)
|
|
||||||
cardinality_string = self.document.xpath("//div[@id='gdd']//tr[td[@class='gdt1']/text()='Images:']/td[@class='gdt2']/text()")[0]
|
cardinality_string = self.document.xpath("//div[@id='gdd']//tr[td[@class='gdt1']/text()='Images:']/td[@class='gdt2']/text()")[0]
|
||||||
gallery.cardinality = int(re.match(r"\d+", cardinality_string).group(0))
|
gallery.cardinality = int(re.match(r"\d+", cardinality_string).group(0))
|
||||||
date_string = self.document.xpath("//div[@id='gdd']//tr[td[@class='gdt1']/text()='Posted:']/td[@class='gdt2']/text()")[0]
|
date_string = self.document.xpath("//div[@id='gdd']//tr[td[@class='gdt1']/text()='Posted:']/td[@class='gdt2']/text()")[0]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue