Skip to main content

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.

If you integrate this into your project or use the generated data, make sure to credit TibiaWiki and its contributors.

GitHub (pre-)release PyPI PyPI - Python Version PyPI - License PyPI - Downloads

Requirements

  • Python 3.10 or higher

Installing

To install the latest version on PyPi:

pip install tibiawikisql

or

Install the latest version from GitHub

pip install git+https://github.com/Galarzaa90/tibiawiki-sql.git

Running

python -m tibiawikisql generate

OR

tibiawikisql

The process can be long, taking up to 10 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. If a newer version of the image has been uploaded, it will be updated.

When done, a database file called tibiawiki.db will be found on the folder.

Docker

Docker Pulls Docker Image Size (latest semver)

The database can also be generated without installing the project, it's dependencies, or Python, by using Docker. Make sure to have Docker installed, then simply run:

generateWithDocker.sh

The script will build a Docker image and run the script inside a container. The tibiawiki.db file will end up in the project's root directory as normal.

Database contents

  • Achievements
  • Charms
  • Creatures
  • Creature drop statistics
  • Houses
  • Imbuements
  • Items
  • Mounts
  • NPCs
  • NPC offers
  • Outfits
  • Quests
  • Spells
  • Updates
  • 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.

image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tibiawikisql-8.1.0.tar.gz (65.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tibiawikisql-8.1.0-py3-none-any.whl (74.9 kB view details)

Uploaded Python 3

File details

Details for the file tibiawikisql-8.1.0.tar.gz.

File metadata

  • Download URL: tibiawikisql-8.1.0.tar.gz
  • Upload date:
  • Size: 65.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tibiawikisql-8.1.0.tar.gz
Algorithm Hash digest
SHA256 b84ddbe2ec8c3449feb9f8ce1f22e9565da34e3a57ab3a0f4d476f7bc60cf39a
MD5 8d709b13fdeed17d4ef4e4c32b215eaf
BLAKE2b-256 eac8ed66af1af5b0ecaba4a718eae24a766f4a2f74f0204c7eb129c2506e6d7f

See more details on using hashes here.

File details

Details for the file tibiawikisql-8.1.0-py3-none-any.whl.

File metadata

  • Download URL: tibiawikisql-8.1.0-py3-none-any.whl
  • Upload date:
  • Size: 74.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tibiawikisql-8.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38864b31ad63a4d802ef5ce65e9247e46b2a066e583018205002f3a5e15c27fe
MD5 55693defc432ed6141ba9db46a763a80
BLAKE2b-256 7faaebc44ed40a19792cc3b6463bfa75c0f9eee78dc839fe84f64d998c259873

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page