1.0.3 • Published 4 years ago
pintrest-scrapper-express v1.0.3
Usage
Quick Start
Download or Clone this repo
cdin to the folderRun
npm installoryarn installcommand to install dependenciesRun
npm startto start the serverOpen
localhost:3000in browser
Params
Url takes two parameters
username : Pinterest username
boardName : Pinterest board name
Example
URLs - home : http://localhost:3000/ - Info : http://localhost:3000/api/:username/:boardName/info - Pins : http://localhost:3000/api/:username/:boardName/pins
To get Info :
- Go to
http://localhost:3000/api/sai123456789000000/weird-words/infoin your browser
- Go to
Result
{ "title": "Weird Words", "totalPins": 341 }To get pins
- Go to
http://localhost:3000/api/sai123456789000000/weird-words/pinsin your browser
- Go to
Result
{ "images": [ { "src": "https://i.pinimg.com/280x280_RS/2e/2d/50/2e2d505f82e118adf0ac6e742e503d82.jpg", "alt": "Words" }, { "src": "https://i.pinimg.com/564x/2f/8e/1e/2f8e1e44ebac2f3536c991524bfa114f.jpg", "alt": " The Words, Cool Words, Favorite Quotes, Best Quotes, Love Quotes, Inspirational Quotes, Daily Quotes, Motivational, Pretty Words" }, { ... ] }
To Develope
- Run
npm run tscto compile.TSto.JS - Run
npm run jscto runindex.js