Skip to main content

A web scraper for the ROTMG Realm Eye website to simplify gathering ROTMG data.

Project description

Rotmg Scraper

Scrapes the RealmEye website for most of the important information you could need.

API Methods

Player Class

getPlayerInfo(userName: str, log: bool = False) -> dict

Retrieves basic player information from RealmEye.

  • userName: The player's in-game name.
  • log: If True, prints debug info.
  • Returns: A dictionary containing player stats like rank, fame, and guild.

getPlayerCharacters(userName: str, log: bool = False) -> dict

Fetches character data for the specified player.

  • userName: The player's in-game name.
  • log: If True, prints debug info.
  • Returns: A dictionary with character class, level, fame, and other details.

getPlayerPets(userName: str, log: bool = False) -> dict

Gets pet information for a player.

  • userName: The player's in-game name.
  • log: If True, prints debug info.
  • Returns: A dictionary containing pet stats, abilities, and rarity.

Guild Information

getGuild(guildName: str, log: bool = False) -> dict

Retrieves information about a guild.

  • guildName: The name of the guild.
  • log: If True, prints debug info.
  • Returns: A dictionary containing guild fame, members, and rankings.

Trading Data

getOfferCount(item: str, log: bool = False, ssnl: bool = False, offerType: str = "buy") -> int

Gets the number of trade offers for an item.

  • item: Name of the item.
  • log: If True, prints debug info.
  • ssnl: Whether to check seasonal offers.
  • offerType: "buy" or "sell".
  • Returns: The number of offers available.

getAllOffers(log: bool = False, ssnl: bool = False, offerType: str = "buy") -> dict

Retrieves all buy/sell offers available.

  • log: If True, prints debug info.
  • ssnl: Whether to check seasonal offers.
  • offerType: "buy" or "sell".
  • Returns: A dictionary with items and their respective offer counts.

convertItemToId(item: str, log: bool = False) -> int

Converts an item name to its RealmEye item ID.

  • item: Name of the item.
  • log: If True, prints debug info.
  • Returns: The item’s unique ID.

getItemFromId(id: int) -> str

Retrieves an item name from its RealmEye item ID.

  • id: Item ID.
  • Returns: The item name.

getOffersFor(item: str, log: bool = False, ssnl: bool = False, offerType: str = "buy") -> list

Fetches a list of trade offers for a specific item.

  • item: Name of the item.
  • log: If True, prints debug info.
  • ssnl: Whether to check seasonal offers.
  • offerType: "buy" or "sell".
  • Returns: A list of trade offers.

Running the Script

If run directly, the script provides an interactive menu to fetch player, guild, and trade data.

python main.py

Select options from the menu to retrieve information dynamically. Otherwise the package can be imported and run programatically in code.

pip install rotmg-scraper
from rotmg-scraper import *

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

rotmg_scraper-1.0.2.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

rotmg_scraper-1.0.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file rotmg_scraper-1.0.2.tar.gz.

File metadata

  • Download URL: rotmg_scraper-1.0.2.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for rotmg_scraper-1.0.2.tar.gz
Algorithm Hash digest
SHA256 dad989c9a5ffd76b418a681cc8533d502ddb65e13702fb006fbd468155b0c0f3
MD5 bd0db2d83c3236bcd197cf90e5910891
BLAKE2b-256 6d5877fa767cb9e6e44cbe9d1aea44d3d214aa8705689608252b778529fb6cf2

See more details on using hashes here.

File details

Details for the file rotmg_scraper-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: rotmg_scraper-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for rotmg_scraper-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 40f56fefa4d70ba7761785f6c1edf738486308acd15b942d155b8bd174c283df
MD5 2280b32a5d526531b7c49916c5e4c2c6
BLAKE2b-256 85021193bb53118d1c1e16e5df88341da258b2777b174cea92048c6aed48303a

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