Fetches new information from the Dead by Daylight - Wiki and outputs to local JSON files.
Originally built with ❤︎ by
Techial and
contributors
⚠️ Merged into chaoticshuffleThe scraper scripts from this directory have been moved into the
chaoticshuffleWorker project atchaoticshuffle/scripts/.
All future work on the scraper should happen there.New location:
d:\Cloudflare\chaoticshuffle\scripts\
New docs:chaoticshuffle/scripts/README.md
# Install deps
pnpm install
# Install Puppeteer's Chrome binary (first time only)
npx puppeteer browsers install chrome
# Scrape wiki + generate SQL seed in one step
pnpm scrapeThis produces data/ JSON files and database_seed.sql in the chaoticshuffle/ root.
# Local dev
wrangler d1 execute chaoticshuffle-db --local --file=./database_seed.sql
# Production
wrangler d1 execute chaoticshuffle-db --remote --file=./database_seed.sqlThe original standalone workflow (before the merge) used to be:
# (in DBD-Database/)
pnpm install
node update.js # → data/*.json
node generate_seed.js # → database_seed.sqlThis folder is retained for historical reference only.
Perks (killer_perks.json, survivor_perks.json):
{
"perks": [{
"URIName": "URL safe string (name of perk)",
"name": "Perk display name (With space and all characters)",
"iconURL": "Perk icon URL",
"content": "Display text (with HTML elements) scraped from the wiki",
"contentText": "Same as `content` without HTML elements",
"characterName": "Name of Character perk belongs to (Omitted if general perk)",
"character": "URIName of Character perk belongs to (Omitted if general perk)"
}]
}Survivors (survivors.json):
{
"survivors": [{
"name": "Character display name (With space and all characters)",
"URIName": "URL safe string (name of survivor)",
"iconURL": "Character image URL",
"link": "Character URL at https://deadbydaylight.fandom.com/"
}]
}Killers (killers.json):
{
"killers": [{
"name": "Full Character name (With space and all characters)",
"killerName": "Short name used in-game (e.g Trapper, Wraith etc)",
"URIName": "URL safe string (name of Killer)",
"iconURL": "Character image URL",
"link": "Character URL at https://deadbydaylight.fandom.com/"
}]
}