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 racermembership
: Gold or regular membershipdisplay_name
: Current display name of the racertitle
: Title of the racerexperience
: Amount of experience achievedlevel
: Current level of the racerteam_id
: Shows the team ID of the racer. If the racer is not in a team, it'll displayNone
looking_for_team
: Returns True if racer is looking for a team, else it returns Falsecar_id
: The id of the racer's current car equippedcar_hue_angle
: Hue angle of the cartotal_cars
: Amount of cars ownednitros_total
: Amount of nitros owned by the racernitros_used
: Amount of nitros used by the racerraces
: Amount of races the racer has playedlongest_session
: Length of the longest sessionaverage_speed
: The racer's average speedhighest_speed
: The racer's highest speed achievedfriend_reqs_allowed
: Returns True if racer accepts friend requests, else it returns Falsecurrent_car_name
: The name of the current car equippedcar_image
: Link of the car's imageprofile_views
: Racer's profile viewscreated
: Racer's account creation timetag
: Shows the tag of the racer. If the racer isn't in a team, it'll displayNone
tag_color
: Color of the racer's tag. If the racer has no tag equipped, it'll displayNone
nametag_name
: Name of the equipped nametagnametag_id
: ID of the equipped nametagnametag_rarity
: Rarity of the equipped nametagnametag_img
: Image URL of the equipped nametagtrail_name
: Name of the equipped trailtrail_id
: ID of the equipped trailtrail_rarity
: Rarity of the equipped trailtrail_img
: Image URL of the equipped trail
Nitromath Usage
games
: Amount of games the racer has playedtag
: Shows the team tag of the racer. If the racer isn’t in a team, it’ll display Noneteam_id
: Shows the team ID of the racer. If the racer is not in a team, it’ll displayNone
profile_views
: Racer's profile viewsfriend_reqs_allowed
: Returns True if racer accepts friend requests, else it returns Falsenitros_used
: Amount of nitros used by the racerlongest_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.