Simple web scrapper fetching data about creatures from Tibia -> the MMO game from Tibia Fandom.
Reading basic bestiary information about inputed creatures by it's URL.
- Python3
Available commands:
creature- scraps basic bestiary information, main functionality of the scrapperlist- scraps list of urls leading to creatures on Tibia Fandom, can be used for further bestiary scrapping
Input URLs (or scrap it with list command) of creatures to scrap, e.g:
https://tibia.fandom.com/wiki/Acid_Blob
https://tibia.fandom.com/wiki/Badger
https://tibia.fandom.com/wiki/Chicken
App will scrap data about these monsters and save output to json file:
[
{
"charmPoints": 25,
"creatureClass": "Slime",
"creatureClassification": "Blobs",
"experience": 250,
"health": 250,
"name": "Acid Blob",
"resistances": {
"Death": 100,
"Earth": 100,
"Energy": -10,
"Fire": -10,
"Ice": 20
},
"version": "8.40"
},
{
"charmPoints": 5,
"creatureClass": "Mammal",
"creatureClassification": "Mustelids",
"experience": 5,
"health": 23,
"name": "Badger",
"resistances": null,
"version": "7.4"
},
{
"charmPoints": 5,
"creatureClass": "Bird",
"creatureClassification": "Birds",
"experience": 0,
"health": 15,
"name": "Chicken",
"resistances": null,
"version": "7.5"
}
]- Clone
mainbranch of the project on your device - Install required dependencies (check dependencies)
- Create
in.txtfile in project directory - Place creatures URLs to scrap in the
in.txtfile (check example) or scrap the whole list withlistcommand - Choose command you want to run (check commands)
- Run
py Main.py [command] - Check your output in
out.jsonfile orlist.txtbased on which command you are using
-
1.1
listcommand -> scrapping list of Creatures urls
-
1.0
creaturecommand -> scrapping data about Creatures:- name
- experience
- health
- class
- classification
- charm points
- resistances
- version