A simple H@H GalleryInfo Parser
Project description
H@H Gallery Parser (h2h-galleryinfo-parser)
H@H Gallery Parser is a Python package designed to parse downloaded gallery files from H@H, a gallery download tool. When H@H downloads a gallery, it creates a folder named after the gallery, containing image files and a galleryinfo.txt file. This package helps extract useful information from the galleryinfo.txt file for further use.
Features
The package provides three core functionalities:
-
Parse Gallery ID: Extract the gallery ID from a given gallery folder.
-
Gallery Information Parsing: The
GalleryInfoParserclass represents a parser for extracting detailed gallery information, including the gallery name, ID, paths of files, modification time, title, upload and download times, comments, uploader account, tags, and the number of pages. -
Parse Gallery Information: Extracts all relevant details from the given folder and returns an instance of
GalleryInfoParsercontaining the parsed information.
Installation
You can install this package using pip:
pip install h2h-galleryinfo-parser
Usage
Here's a quick example of how to use H@H Gallery Parser:
from h2h_galleryinfo_parser import parse_gid, parse_galleryinfo
# Parse gallery ID from folder path
gallery_id = parse_gid('/path/to/gallery/folder')
print(f'Gallery ID: {gallery_id}')
# Parse gallery information
gallery_info = parse_galleryinfo('/path/to/gallery/folder')
print(f'Gallery Title: {gallery_info.title}')
print(f'Tags: {gallery_info.tags}')
License
This project is distributed under the terms of the GNU General Public Licence (GPL). For detailed licence terms, see the LICENSE file included in this distribution.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file h2h_galleryinfo_parser-0.2.2.tar.gz.
File metadata
- Download URL: h2h_galleryinfo_parser-0.2.2.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
006b3e87a6cb45b7e381d0cd36be879cfa778c036c080589d5148c213050a0a9
|
|
| MD5 |
d00f2b73b2a62901120b38dc70f9dabf
|
|
| BLAKE2b-256 |
628f13ec44cca8750b00d203b14e2d6c486b8868715f87543dc249da0ad012bd
|
File details
Details for the file h2h_galleryinfo_parser-0.2.2-py3-none-any.whl.
File metadata
- Download URL: h2h_galleryinfo_parser-0.2.2-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e09a90615b107aadc6be7fcbb262db15ce30efc83c040b4440dfb12e0b0e9994
|
|
| MD5 |
3fca68fbc80e41640772c264f4faa403
|
|
| BLAKE2b-256 |
ce67aceed4a51e167e5e7404f7bbdaf9b06b953e74e21f064b076510a328699f
|