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 possibly 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.

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.0.tar.gz (2.9 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.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rotmg_scraper-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 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.0.tar.gz
Algorithm Hash digest
SHA256 fbdd0b10dfbfcf783c93a31869de40b86e63c7ed1cda84fdd377ade0e6f2b264
MD5 fc8181ba0b17ea6ec12f71edf1c7f98c
BLAKE2b-256 cf5a0ad0440f293e2e16b2cb5caae189c8080116b1fcb4a3f3c5af74e8b80216

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rotmg_scraper-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf70de7472c8dc5c4db1770f3d1514394473ab4669a8ada940ee0d9d71fdcc0e
MD5 8e8675a0efc4b7a5f725852f48982e7f
BLAKE2b-256 b726f672aad65bea8ec7ff8ac8b490873ddde2aac1e22b930d765d68ed9c41c9

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