Skip to content

Easily fetch the list of PC parts from a PCPartPicker.com part list. Useful for discord bots and more.

Notifications You must be signed in to change notification settings

KyleTryon/PCPartPickerParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PcPartPickerParser

PCP3 is an unofficial API that returns and array of objects containing parts and information from a given pcpartpicker.com parts list.

Installation

npm install pcpartpickerparser --save

Install

Load the module via require

const  pcp3  =  require("pcpartpickerparser")

Load the module via import

import { getPartsList } from 'pcpartpickerparser'

Example

import { getPartsList } from 'pcpartpickerparser'

async function returnParts() {
  try {
    const parts = getPartsList('list id')
    console.log(parts)
  } catch (error) {
    console.log(error)
  }
}

API

The tabular data from a standard PC Part Picker list is converted into a JSON array with one object per row.

[
  {
    "type": "CPU",
    "image": "https://example.com",
    "name": "Part name",
    "price": "$9.99"
  }
]

About

Easily fetch the list of PC parts from a PCPartPicker.com part list. Useful for discord bots and more.

Topics

Resources

Stars

Watchers

Forks

Packages