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.1.tar.gz (5.6 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.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rotmg_scraper-1.0.1.tar.gz
  • Upload date:
  • Size: 5.6 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.1.tar.gz
Algorithm Hash digest
SHA256 3f3bdec59718fe9d17140c16728cf9d81414b8add00b0c9f93ce10ec921e5b36
MD5 34bcaf02da17821c682aabd22046997f
BLAKE2b-256 f5d8527f3c00305f9a30d599eda7e2ae6e2ccd7623b7a6ff45c23177fa71f110

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rotmg_scraper-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45bf12c2c7310f15cbcfd82bf85d5ec26aaaaecdf92e7dbbe6f7125dba0948c3
MD5 6fa3f649a6524e0dbe35754247c85ab0
BLAKE2b-256 27989cc4ad4bd792957f79f353b3880e8f4a55af2a5a31d82c5bee49a3f703d7

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