I was talking to the staff at wowdb.com, and they gave permission for me to scrape their
mailbox data. wowhead.com does not track mailboxes, if people wondered.
My problem is that I have no idea how to scrape the data because I have never done any scraping. I looked at DataTools on Curse, and I got headaches.
If someone wants to teach me, I would like to learn how DT makes an addon, populates it with data from wowhead or wowdb or the game's files, etc. On the other hand, if someone wants to present me with "here you go", I'll take that happily as well. The format I want the data is something like the following example, as I will need to make corrections like mailboxes in the wrong location, put icons on the correct floors, etc.
The LocationMapper line for the mailbox link above starts on line 7067, and I understand it doesn't follow the table format I need. If I could even break it down into something readable and then copy/paste, that's fine too.
Lua Code:
-- HandyNotes_PostService.lua
local HPS = LibStub("AceAddon-3.0"):NewAddon("HandyNotes_PostService")
do
function HPS:ParseData()
local mailboxes = HPS:Data()
-- blah blah
end
end
function HPS:OnIntialize()
-- blah
end
-- PostService_Mailboxes.lua
local HPS = LibStub("AceAddon-3.0"):GetAddon("HandyNotes_PostService")
function HPS:Data()
local mailboxes = {
["StormwindCity"] = { -- Astrolabe's mapFile name, but it could be Blizzard's mapID and I can convert
[0] = "1|62207440|" -- [mapFloor] = "factionNum|coord|factionNum|coord|" where Alliance = 1, Horde = 2, Other = 3
}
}
return mailboxes
end