Matthew-Bunge-Software / Board-Game-Recs

Board Game Data Visualization and Recommendation
2 stars 1 forks source link

Persisting More Data #22

Open mattb555 opened 4 years ago

mattb555 commented 4 years ago

Here is a representative API Call and its result. At the moment only a subset of the data is persisted. Much more of it can be, and some of it like other names, boardgamecategories, boardgamemechanics, I'm already pretty sure I do want persisted.

https://www.boardgamegeek.com/xmlapi2/thing?id=205079&stats=1
<?xml version="1.0" encoding="utf-8"?>
<items termsofuse="https://boardgamegeek.com/xmlapi/termsofuse">
    <item type="boardgame" id="205079">
        <thumbnail>https://cf.geekdo-images.com/thumb/img/zVuTC1JNzx5fwn90V39hT9Ojz5g=/fit-in/200x150/filters:strip_icc()/pic3139187.jpg</thumbnail>
        <image>https://cf.geekdo-images.com/original/img/f-vajZxkuyu8S9xcobC8mY4moZg=/0x0/pic3139187.jpg</image>
        <name type="primary" sortindex="1" value="Checkpoint Charlie" />
        <name type="alternate" sortindex="1" value="Το Κυνήγι των Κατασκόπων" />
        <name type="alternate" sortindex="1" value="Чекпоинт Чарли" />
        <name type="alternate" sortindex="1" value="查理檢查哨" />
        <name type="alternate" sortindex="1" value="체크포인트 찰리" />
        <description>Description from the publisher:&amp;#10;&amp;#10;Checkpoint Charlie is a game of observation, deduction, and mental agility. Watch all the suspects carefully and find out which of them is the chief of spies using the clues that you and the other investigators uncover. Be the first to find the chief of spies and become the best hound dog!&amp;#10;&amp;#10;In the game, each player receives a clue that reveals one out of five possible traits of the chief of spies. Each player keeps revealing cards, indicating whether each character is a suspect or not. As the game progresses, players gather more and more clues to lead them towards the chief of spies. This chief of spies will coincide with five out of five possible clues, and his aides will match four out of those five. Whoever accuses the chief of spies on time gets the most points. Players who accuse the aides will also earn some points, while the other players might not receive any points at all &amp;mdash; or even negative rewards. The game includes two optional rules that add more strategy to the gameplay.&amp;#10;&amp;#10;Checkpoint Charlie is set during the cold war, and the subject of detectives and spies is applied using cartoon-stylized dogs and cats.&amp;#10;&amp;#10;</description>
        <yearpublished value="2016" />
        <minplayers value="3" />
        <maxplayers value="5" />
        <poll name="suggested_numplayers" title="User Suggested Number of Players" totalvotes="12">
            <results numplayers="1">
                <result value="Best" numvotes="0" />
                <result value="Recommended" numvotes="0" />
                <result value="Not Recommended" numvotes="5" />
            </results>
            <results numplayers="2">
                <result value="Best" numvotes="0" />
                <result value="Recommended" numvotes="0" />
                <result value="Not Recommended" numvotes="4" />
            </results>
            <results numplayers="3">
                <result value="Best" numvotes="0" />
                <result value="Recommended" numvotes="4" />
                <result value="Not Recommended" numvotes="2" />
            </results>
            <results numplayers="4">
                <result value="Best" numvotes="1" />
                <result value="Recommended" numvotes="6" />
                <result value="Not Recommended" numvotes="0" />
            </results>
            <results numplayers="5">
                <result value="Best" numvotes="12" />
                <result value="Recommended" numvotes="0" />
                <result value="Not Recommended" numvotes="0" />
            </results>
            <results numplayers="5+">
                <result value="Best" numvotes="0" />
                <result value="Recommended" numvotes="0" />
                <result value="Not Recommended" numvotes="4" />
            </results>
        </poll>
        <playingtime value="30" />
        <minplaytime value="20" />
        <maxplaytime value="30" />
        <minage value="10" />
        <poll name="suggested_playerage" title="User Suggested Player Age" totalvotes="2">
            <results>
                <result value="2" numvotes="0" />
                <result value="3" numvotes="0" />
                <result value="4" numvotes="0" />
                <result value="5" numvotes="0" />
                <result value="6" numvotes="0" />
                <result value="8" numvotes="2" />
                <result value="10" numvotes="0" />
                <result value="12" numvotes="0" />
                <result value="14" numvotes="0" />
                <result value="16" numvotes="0" />
                <result value="18" numvotes="0" />
                <result value="21 and up" numvotes="0" />
            </results>
        </poll>
        <poll name="language_dependence" title="Language Dependence" totalvotes="2">
            <results>
                <result level="1" value="No necessary in-game text" numvotes="2" />
                <result level="2" value="Some necessary text - easily memorized or small crib sheet" numvotes="0" />
                <result level="3" value="Moderate in-game text - needs crib sheet or paste ups" numvotes="0" />
                <result level="4" value="Extensive use of text - massive conversion needed to be playable" numvotes="0" />
                <result level="5" value="Unplayable in another language" numvotes="0" />
            </results>
        </poll>
        <link type="boardgamecategory" id="1002" value="Card Game" />
        <link type="boardgamecategory" id="1039" value="Deduction" />
        <link type="boardgamecategory" id="1081" value="Spies/Secret Agents" />
        <link type="boardgamemechanic" id="2047" value="Memory" />
        <link type="boardgamemechanic" id="2060" value="Pattern Recognition" />
        <link type="boardgamedesigner" id="64560" value="Jose Antonio Abascal Acebo" />
        <link type="boardgameartist" id="32071" value="Joan Guardiet" />
        <link type="boardgamepublisher" id="37242" value="Devir Games" />
        <link type="boardgamepublisher" id="37644" value="DEAR SPIELE" />
        <link type="boardgamepublisher" id="2366" value="Devir" />
        <link type="boardgamepublisher" id="29194" value="GaGa Games" />
        <link type="boardgamepublisher" id="6214" value="Kaissa Chess &amp; Games" />
        <link type="boardgamepublisher" id="8291" value="Korea Boardgames co., Ltd." />
        <link type="boardgamepublisher" id="22" value="Piatnik" />
        <link type="boardgamepublisher" id="9234" value="Swan Panasia Co., Ltd." />
        <statistics page="1">
            <ratings >
                <usersrated value="435" />
                <average value="6.68277" />
                <bayesaverage value="5.68501" />
                <ranks>
                    <rank type="subtype" id="1" name="boardgame" friendlyname="Board Game Rank" value="4866" bayesaverage="5.68501" />
                    <rank type="family" id="5499" name="familygames" friendlyname="Family Game Rank" value="1224" bayesaverage="5.73799" />
                </ranks>
                <stddev value="1.55407" />
                <median value="0" />
                <owned value="648" />
                <trading value="14" />
                <wanting value="9" />
                <wishing value="98" />
                <numcomments value="75" />
                <numweights value="9" />
                <averageweight value="1.3333" />
            </ratings>
        </statistics>
    </item>
</items>