Create database_read.py
Database_read build the fut players database and enables you to find the name of player when you know its id and vice-versa
I like the idea but i think it should be much simple (read json directly, not convert to html then parse, convert unicode) and merged into core as new function. What's the point of creating new file?
I created a new file as I did not want to mess up all your work when I created this library. I also thought that it will be way faster if I only parse the json file once, and store the result in a structure than parsing for each request
I solve this problem, importing the JSON content into my database. When I need find some player assetId, I find then at my database.
@oczkers do you have some better idea ?
Looks like i've started parsing json databse but totally forget about this :-)
TODO:
- [x] import json
- [x] parse and arrange in nice dictionary/object for easy searching like in HKev68 code
Players data is parsed now (https://github.com/oczkers/fut/commit/f1ceb1cd26804619fbdf66fae0ca22f7a20ce8e3).
TODO:
- [ ] objects, we need objects (player, nationality, team etc.)
- [ ] add database search abilities