Information on query.php
Posted: Fri Feb 22, 2019 10:21 pm
Is there a way that query.php can retrieve item information? Like if I had a specific item ID I could get the AP and DP of the item?
Something like https://bdocodex.com/query.php?a=items& ... 14034&l=us would return the json data:
This would help a ton on a project I am working on to bring the bdcodex to discord VIA a bot. The biggest problem I have with scraping information off the website is that most of it is in td tags that don't allow you to get information easily. This wouldn't be a problem if the data was consistent but some skills/items/npc's lack information that others have.
Example:
https://bdocodex.com/tip.php?id=skill--3174&l=us - Has cooldowns listed.
https://bdocodex.com/tip.php?id=skill--2888&l=us - Doesn't have cooldowns listed.
This makes even trying to read the tables a consistency issue. Would be great if there was a solution to this where data was always output in a similar manner. Say if the cooldown was 0 it would could still be represented by "Cooldown: 0."
Something like https://bdocodex.com/query.php?a=items& ... 14034&l=us would return the json data:
Code: Select all
"0": {
"enchant_chance": "100.00",
"damage": "18 ~ 22",
"defense": 0,
"accuracy": "10",
"evasion": 0,
"dreduction": 0,
"need_enchant_item_id": "0",
"durability": "100 / 100",
"enchant_item_counter": 1,
"edescription": "Item Effect<br><span style=\"color: #e9bd23\"> Extra Damage to All Species +10</span><br><span style=\"color: #e9bd23\"> Casting Speed +3 Level</span><br><br>- Enhancement Effect<br><span style=\"color: #e9bd23\">Extra AP against monsters up (enhancement level PRI or up)</span><br><span style=\"color: #e9bd23\"> Extra Damage to All Species Up</span><br><span style=\"color: #e9bd23\"> All AP Up</span><br><span style=\"color: #e9bd23\"> All Accuracy Up</span><br>"
},
Example:
https://bdocodex.com/tip.php?id=skill--3174&l=us - Has cooldowns listed.
https://bdocodex.com/tip.php?id=skill--2888&l=us - Doesn't have cooldowns listed.
This makes even trying to read the tables a consistency issue. Would be great if there was a solution to this where data was always output in a similar manner. Say if the cooldown was 0 it would could still be represented by "Cooldown: 0."