Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

precious-data

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

precious-data

Precious Memories Card Data

  • 0.2.0
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Precious Data

CircleCI

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.

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.

Keywords

FAQs

Package last updated on 08 Aug 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc