Python script that generates a SQLite database from TibiaWiki articles
Project description
tibiawiki-sql
Script that generates a sqlite database for the MMO Tibia.
Inspired in Mytherin's Tibiaylzer TibiaWiki parsing script.
This script fetches data from TibiaWiki via its API, compared to relying on database dumps that are not updated as frequently. By using the API, the data obtained is always fresh.
This script is not intended to be running constantly, it is meant to be run once, generate a sqlite database and use it externally.
Requirements
- Python 3.6 or higher
- requests module
- click module
- colorama module
Installation
This module can be installed from PyPi using:
pip install tibiawikisql
Once installed, you can run the command anywhere using:
python -m tibiawikisql generate
OR
tibiawikisql
The process can be long, taking up to 20 minutes the first time. All images are saved to the images
folder. On
subsequent runs, images will be read from disk instead of being fetched from TibiaWiki again.
When done, a database file called tibiawiki.db
will be found on the folder.
Database contents
- Achievements
- Charms
- Creatures
- Creature drop statistics
- Houses
- Imbuements
- Items
- Mounts
- NPCs
- NPC offers
- Quests
- Spells
- Worlds
Documentation
Check out the documentation page.
Contributing
Improvements and bug fixes are welcome, via pull requests
For questions, suggestions and bug reports, submit an issue.
The best way to contribute to this project is by contributing to TibiaWiki.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tibiawikisql-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51fd6f0bde081a7f85364ffee817c09febbae05246ccc2966f68e00205dbb0fa |
|
MD5 | 89064240627e8cbb099293f40c23955a |
|
BLAKE2b-256 | 8790cf08239716be76de4058234ff2d4ba1a9522741bef3ed4be74d92a1df387 |