| 73 | return results |
| 74 | |
| 75 | def metadata(self, page): |
| 76 | extr = text.extract_from(text.extr( |
| 77 | page, 'class="summary_content">', 'class="manga-action"')) |
| 78 | return { |
| 79 | "manga" : text.extr(page, "<h1>", "</h1>").strip(), |
| 80 | "description": text.unescape(text.remove_html(text.extract( |
| 81 | page, ">", "</div>", page.index("summary__content"))[0])), |
| 82 | "rating" : text.parse_float( |
| 83 | extr('total_votes">', "</span>").strip()), |
| 84 | "manga_alt" : text.remove_html( |
| 85 | extr("Alternative\t\t</h5>\n\t</div>", "</div>")).split("; "), |
| 86 | "author" : list(text.extract_iter( |
| 87 | extr('class="author-content">', "</div>"), '"tag">', "</a>")), |
| 88 | "artist" : list(text.extract_iter( |
| 89 | extr('class="artist-content">', "</div>"), '"tag">', "</a>")), |
| 90 | "genres" : list(text.extract_iter( |
| 91 | extr('class="genres-content">', "</div>"), '"tag">', "</a>")), |
| 92 | "type" : text.remove_html( |
| 93 | extr(" Type ", "\n</div>")), |
| 94 | "release" : text.parse_int(text.remove_html( |
| 95 | extr(" Release ", "\n</div>"))), |
| 96 | "status" : text.remove_html( |
| 97 | extr(" Status ", "\n</div>")), |
| 98 | } |