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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page