Skip to content

zeroproduct/grail-fits-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grail-fits-scraper

Needed a bunch of outfit images as seed data for a separate project. Uses puppeteer to crawl and fetch images from Grail Fits articles (ex: https://www.grailed.com/drycleanonly/grail-fits-131). Exports a fits.json file with structure described below.

How to run

$ cd grail-fits-scraper
$ npm install
$ npm run scrape -- <range> 
# ex: 100-120, defaults to 130-131

Generates fits.json in src/

{
  "data": [
    { 
      "title": "user1", 
      "src": "srcToImg1"
    },
    { 
      "title": "user2", 
      "src": "srcToImg2"
    }
  ],
  "error": ""
}

About

Scrape images and titles from Grail Fits articles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published