Skip to main content

A package for interacting with the website, Nitrotype and Nitromath

Project description

NitromathRacer

NitromathRacer is a Python package that allows you to retrieve and display stats of Nitromath racers. It scrapes the Nitromath website to gather racer information.

Installation

pip install NitroPy

Note: All the attributes of NitroType and NitroMath are the same. The only difference being the couple of the datas. Races/Games, team tag, team id, profile views, friend requests, team requests, nitros used, and longest session.

Nitrotype Usage

from nitrotype import NitrotypeRacer
nitrotype_racer = NitrotypeRacer("tranq_")
print(nitrotype_racer.username)

Nitromath Usage

from nitromath import NitromathRacer
nitromath_racer = NitromathRacer("tranq_")
print(nitromath_racer.username)

This will print out the username for tranq_.

You can view all the attributes of the Nitromath Racer class below.

Nitromath Racer Attributes

Here are the attributes of the Nitromath Racer class:

  • username: The username of the racer
  • membership: Gold or regular membership
  • display_name: Current display name of the racer
  • title: Title of the racer
  • experience: Amount of experience achieved
  • level: Current level of the racer
  • team_id: Shows the team ID of the racer. If the racer is not in a team, it'll display None
  • looking_for_team: Returns True if racer is looking for a team, else it returns False
  • car_id: The id of the racer's current car equipped
  • car_hue_angle: Hue angle of the car
  • total_cars: Amount of cars owned
  • nitros_total: Amount of nitros owned by the racer
  • nitros_used: Amount of nitros used by the racer
  • races: Amount of races the racer has played
  • longest_session: Length of the longest session
  • average_speed: The racer's average speed
  • highest_speed: The racer's highest speed achieved
  • friend_reqs_allowed: Returns True if racer accepts friend requests, else it returns False
  • current_car_name: The name of the current car equipped
  • car_image: Link of the car's image
  • profile_views: Racer's profile views
  • created: Racer's account creation time
  • tag: Shows the tag of the racer. If the racer isn't in a team, it'll display None
  • tag_color: Color of the racer's tag. If the racer has no tag equipped, it'll display None
  • nametag_name: Name of the equipped nametag
  • nametag_id: ID of the equipped nametag
  • nametag_rarity: Rarity of the equipped nametag
  • nametag_img: Image URL of the equipped nametag
  • trail_name: Name of the equipped trail
  • trail_id: ID of the equipped trail
  • trail_rarity: Rarity of the equipped trail
  • trail_img: Image URL of the equipped trail

Nitromath Usage

  • games: Amount of games the racer has played
  • tag: Shows the team tag of the racer. If the racer isn’t in a team, it’ll display None
  • team_id: Shows the team ID of the racer. If the racer is not in a team, it’ll display None
  • profile_views: Racer's profile views
  • friend_reqs_allowed: Returns True if racer accepts friend requests, else it returns False
  • nitros_used: Amount of nitros used by the racer
  • longest_session: Length of the user's longest session

Nitrotype News

Attributes

  • news_blog_id: The ID of the blog entry.
  • news_slug: The slug of the news post.
  • news_title: The title of the news post.
  • news_created_stamp: The timestamp when the news post was created.
  • news_last_modified: The timestamp when the news post was last modified.
  • news_written_by: The author of the news post.
  • news_short_body: A short summary or snippet of the news post.

Example Usage:

from nitrotype_package import NitrotypeNews

news_data = NitrotypeNews()
print(news_data.blog_id)

Team Data

Attributes

Below are the attributes for both NitroType team and NitroMath

  • team_id: The ID of the team.
  • user_id: The ID of the team's user.
  • name: The name of the team.
  • min_level: The minimum level requirement for the team.
  • min_races: The minimum number of races required for the team.
  • min_speed: The minimum speed required for the team.
  • other_requirements: Other requirements specified by the team.
  • members: The number of members in the team.
  • captain_username: The username of the team captain.
  • enrollment: The enrollment status of the team.
  • profile_views: The number of profile views for the team.
  • last_modified: The timestamp when the team information was last modified.
  • created_stamp: The timestamp when the team was created.
  • username: The username of the captain.
  • display_name: The display name of the captain.

Example Usage:

NitroType usage

#Import here

team_data = NitrotypeTeam("SSH")
print(team_data.captain_username)

NitroMath usage

#Import here

team_data = NitrotypeMath("SSH")
print(team_data.captain_username)

Magmal Bot:

Invite: INVITE ME! Server Invite: JOIN!

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

NitroPy-1.2.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

NitroPy-1.2.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file NitroPy-1.2.1.tar.gz.

File metadata

  • Download URL: NitroPy-1.2.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for NitroPy-1.2.1.tar.gz
Algorithm Hash digest
SHA256 06f05a5090a90ac8fbd9190c90219c4d7823eb211307c4f42eb72af7c913ee1f
MD5 6f9c16b06a09b730292b9a425ac7ab6f
BLAKE2b-256 85ba35eff4be4ddba45cdd6d0ec3dd837a6f7f432535eeaaeaf7df4c9c43e919

See more details on using hashes here.

File details

Details for the file NitroPy-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: NitroPy-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for NitroPy-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f01a7d6f713e314594ec97ec1d9a02498c25fb14265c995d550cada654a0f31a
MD5 03f0995d716f42c27c5572097c1839e0
BLAKE2b-256 7475e024e394759f17b499d8b0789dc55ecb0108d6a28b840de9c1f0a5d2f388

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