Parsers¶
Clean-room HTML -> M1 model parsers for vgmdb pages.
NotAProductPageError
¶
Bases: ParseError
Raised when the HTML lacks the essential anchors of a product page.
Source code in src/vgmdb_client/parsers/errors.py
36 37 38 39 40 | |
NotAnArtistPageError
¶
Bases: ParseError
Raised when the HTML lacks the essential anchors of an artist page.
Source code in src/vgmdb_client/parsers/errors.py
29 30 31 32 33 | |
NotAnEventPageError
¶
Bases: ParseError
Raised when the HTML lacks the essential anchors of an event page.
Source code in src/vgmdb_client/parsers/errors.py
50 51 52 53 54 | |
NotAnOrganizationPageError
¶
Bases: ParseError
Raised when the HTML lacks the essential anchors of an organization page.
Source code in src/vgmdb_client/parsers/errors.py
43 44 45 46 47 | |
ParseError
¶
Bases: VgmdbClientError
Raised when HTML is not a recognizable album/search page.
Source code in src/vgmdb_client/parsers/errors.py
8 9 10 11 12 | |
parse_album(html)
¶
Parse a captured vgmdb album page into an :class:Album (clean-room selectors).
Source code in src/vgmdb_client/parsers/album.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
parse_artist(html)
¶
Parse a captured vgmdb artist page into an :class:Artist (clean-room selectors).
Source code in src/vgmdb_client/parsers/artist.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | |
parse_event(html)
¶
Parse a captured vgmdb event page into an :class:Event (clean-room selectors).
Source code in src/vgmdb_client/parsers/event.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | |
parse_organization(html)
¶
Parse a captured vgmdb organization page into an :class:Organization (clean-room selectors).
Source code in src/vgmdb_client/parsers/organization.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | |
parse_product(html)
¶
Parse a captured vgmdb product page into a :class:Product (clean-room selectors).
Source code in src/vgmdb_client/parsers/product.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | |
parse_search(html)
¶
Parse a captured vgmdb search-results page into :class:SearchResults.
Source code in src/vgmdb_client/parsers/search.py
17 18 19 20 21 22 23 24 25 26 27 | |