npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

precious-data

v1.1.0

Published

Precious Memories TCG Data

Downloads

22

Readme

Precious Data

CircleCI

Coverage Status

a.k.a. Pirate Memories because that's more fun.

Precious Data is a project to copy and mirror trading card data from the official Precious Memories (P-Memories) website.

P-Memories is a Japanese exclusive card game with card titles, text, and flavor text primarily written in Hiragana, Katakana, and Kanji.

What the Precious Data project does

Data Ripper

The data ripper uses Javascript to request, parse, and organize card data from P-Memories.com. Once parsed, card data is saved on disk in set-labelled folders as JSON files. Because of the nature of this script, this functionality is throttled, and not meant to be used often, as doing so too fast or too often could be seen as malicious.

Additionally, card images are downloaded and stored on disk in the same set-labelled folders.

For example, cards belonging to the Hatsune Miku card set will be saved in the abbreviated set-labelled folder, HMK. SSSS.GRIDMAN cards are saved in the set-labelled folder, SSSS.

As future updates and additions to P-Memories cards are anticipated, the ripper is smart enough to merge official data with unofficial translations. This means that the card JSON files are safe to edit manually, and work will not be lost during future data rips.

Installation:

git clone https://github.com/insanity54/precious-data
cd precious-data
npm install

Usage:

npm run rip

Card data is downloaded to the data folder

Advanced Usage:

Advanced usage of the CLI tool p-data.js allows the user to download specific sets, specific URLs, or all precious-memories cards in existence. The -i (incremental) flag can significantly reduce network usage by only downloading card data which has not already been downloaded.

Documentation

See ./docs

Examples

Download all cards in the Hatsune Miku set.

./p-data.js rip -s HMK

Download a card from a p-memories.com URL

./p-data.js rip -u http://p-memories.com/node/942168

Download a card given it's unique ID

./p-data.js rip -n ERMG_01-001

Download all P-Memories cards in existence.

./p-data.js rip -a

Download all cards in existence, waiting 3 seconds between each network request. Only download card data which hasn't already been downloaded.

./p-data.js rip -a -t 3 -i

Show commandline usage and help

./p-data.js -h
./p-data.js rip -h

TL;DR:

This project creates a JSON/JPG card dataset using p-memories.com as the source. npm run rip.