Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyletryon/pcpartpickerparser
Easily fetch the list of PC parts from a PCPartPicker.com part list. Useful for discord bots and more.
https://github.com/kyletryon/pcpartpickerparser
discord pcpartpicker
Last synced: about 2 months ago
JSON representation
Easily fetch the list of PC parts from a PCPartPicker.com part list. Useful for discord bots and more.
- Host: GitHub
- URL: https://github.com/kyletryon/pcpartpickerparser
- Owner: KyleTryon
- Created: 2019-02-12T02:55:03.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T11:31:09.000Z (almost 2 years ago)
- Last Synced: 2024-10-15T03:28:02.340Z (2 months ago)
- Topics: discord, pcpartpicker
- Language: TypeScript
- Homepage:
- Size: 450 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# PcPartPickerParser
PCP3 is an unofficial API that returns and array of objects containing parts and information from a given pcpartpicker.com parts list.
## Installation
```bash
npm install pcpartpickerparser --save
```## Install
Load the module via `require`
```js
const pcp3 = require("pcpartpickerparser")
```Load the module via `import`
```js
import { getPartsList } from 'pcpartpickerparser'
```## Example
```js
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.
```json
[
{
"type": "CPU",
"image": "https://example.com",
"name": "Part name",
"price": "$9.99"
}
]
```