
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
h2h-galleryinfo-parser
Advanced tools
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.
The package provides three core functionalities:
Parse Gallery ID: Extract the gallery ID from a given gallery folder.
Gallery Information Parsing: The GalleryInfoParser
class 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 GalleryInfoParser
containing the parsed information.
You can install this package using pip:
pip install h2h-galleryinfo-parser
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}')
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.
FAQs
A simple H@H GalleryInfo Parser
We found that h2h-galleryinfo-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.