Skip to content

Parsing WoWForeverBot session reports with Python

6 replies 587 views by DrakkonLol

Quick technical question. I'm building a monitoring dashboard for my botting setup and I want to parse the WoWForeverBot session reports.

The reports are HTML but the data is in a structured table. Has anyone written a parser for these? I want to extract:
- Session duration
- XP gained
- Items looted (by type)
- Route efficiency %
- Deaths

I could write my own but if someone already did it I'd rather not reinvent the wheel.

I wrote a Python script for this. The session reports use consistent table IDs so it's straightforward with BeautifulSoup. Here's the gist of it:

from bs4 import BeautifulSoup

def parse_report(html):
soup = BeautifulSoup(html, 'html.parser')
duration = soup.select_one('#session-duration').text
xp = int(soup.select_one('#xp-gained').text.replace(',', ''))
efficiency = float(soup.select_one('#route-efficiency').text.strip('%'))
items = {}
for row in soup.select('#loot-table tbody tr'):
name = row.select_one('td:nth-child(1)').text
qty = int(row.select_one('td:nth-child(2)').text)
items[name] = qty
return {'duration': duration, 'xp': xp, 'efficiency': efficiency, 'items': items}

I can share the full script if there's interest. I pipe the output into a SQLite database and track trends over time.

edited 3h ago

This is exactly what I needed. Would love the full script. The SQLite idea is great - I've been copy-pasting into Sheets and it's miserable.

If WoWForeverBot ever adds CSV export like I asked for in the official thread, we won't need this. But until then, parser it is.

I had the same issue and it turned out to be an addon conflict. I was running a gathering addon that was interfering with the bot's node detection. Once I disabled it, the crashes stopped completely.

If you are running any gathering or mapping addons, try disabling them before changing any bot settings. It took me way too long to figure that out.

I had a similar thermal issue on my laptop and the FPS cap was the game changer. The bot does not need high FPS since it reads memory not pixels, so capping at 30 is essentially free.

Another tip: close all browser tabs. Chrome was eating 2-3GB of RAM in the background and once I closed it the throttling stopped entirely. The bot itself uses barely anything but WoW plus Chrome is a lot for a laptop.

I had a similar issue and it turned out to be my antivirus. Windows Defender was flagging the bot's input simulation as suspicious and quarantining it intermittently. Once I added the bot directory to the exclusion list, the random stops disappeared entirely.

If you are running any third-party security software, that should be the first thing you check. The bot looks like a keylogger to heuristic scanners because it sends keystrokes to another process.

I ran into a similar issue while setting up a spare machine. The first thing that helped was reproducing it with one profile and no extra overlays, then adding settings back one at a time. That made it much easier to tell whether the problem was the route or the client.

For anyone testing this, save a copy of the working profile before changing anything. I lost an evening to a tiny setting change that I could not remember afterward.

Post a reply

Sign in or join free to post a reply.