68
loading...
This website collects cookies to deliver better user experience
Create a Firebase account & Project
Enable Firestore
(optional) Enable Authentication using Google.
(optional) Update security rules to enable any authenticated user to read data (this setup is assuming usage with the provided Web GUI, if used within your own project tailor your security rules to the given project).
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read: if (request.auth.uid != null);
}
}
}
Within Firebase, navigate to Project Settings > Service Accounts, select Python and click on "Generate new private key"
Rename the file to serviceAccountKey.json and import it into the project directory ./database/serviceAccountKey.json (this file is included in .gitignore)
Create virtual environment
Use the package manager pip to install dependencies from requirements.txt file.
pip3 install -r requirements.txt
{
"player_rank": 44,
"image": "https://storage.googleapis.com/assets.axieinfinity.com/axies/7751721/axie/axie-full-transparent.png",
"time": {
"seconds": 1635428026,
"nanoseconds": 751095000
},
"axie": {
"class": "Bird",
"player_mmr": "3312",
"player_rank": 44,
"axie_zone_score": "Excellent",
"title": "",
"matching_player": "#44 youtube.com de-hi games 3312 0 0%",
"id": "7751721",
"__typename": "Axie",
"name": "Axie #7751721",
"breedCount": 3,
"battleInfo": {
"banned": false,
"__typename": "AxieBattleInfo"
},
"parts": [
{
"name": "Mavis",
"specialGenes": null,
"id": "eyes-mavis",
"class": "Bird",
"__typename": "AxiePart",
"type": "Eyes"
},
{
"type": "Ears",
"specialGenes": null,
"class": "Bird",
"id": "ears-peace-maker",
"__typename": "AxiePart",
"name": "Peace Maker"
},
{
"name": "Pigeon Post",
"__typename": "AxiePart",
"specialGenes": null,
"id": "back-pigeon-post",
"class": "Bird",
"type": "Back"
},
{
"specialGenes": null,
"type": "Mouth",
"__typename": "AxiePart",
"class": "Bug",
"id": "mouth-cute-bunny",
"name": "Cute Bunny"
},
{
"type": "Horn",
"specialGenes": null,
"class": "Bird",
"name": "Eggshell",
"id": "horn-eggshell",
"__typename": "AxiePart"
},
{
"id": "tail-post-fight",
"class": "Bird",
"specialGenes": null,
"type": "Tail",
"name": "Post Fight",
"__typename": "AxiePart"
}
],
"stage": 4,
"image": "https://storage.googleapis.com/assets.axieinfinity.com/axies/7751721/axie/axie-full-transparent.png",
"player_url": "https://axie.zone/profile?ron_addr=0x1b246e446336f55b4150294ccd39693fb4a8aa9b",
"matching_axie_name": "obasan",
"auction": {
"currentPrice": "40000000000000000",
"__typename": "Auction",
"currentPriceUSD": "165.82"
}
},
"currentPriceUSD": 165.82,
"id": "7751721",
"class": "Bird"
}