- gets racer stats
- gets team stats
- access the nitrotype api
Get the stats of a racer.
- username
How to use it:
import nitrotype
racer = nitrotype.Racer('adl212')
print(racer.username)
This will print out adl212 You can see all the attributes of the Racer class here
Get the stats of a team.
- team tag
How to use it:
import nitrotype
team = nitrotype.Team('NTA')
print(team.leaders)
This will print out officers and the captain by type tuple (username, displayname) You can see all the attributes of the Team class here
Here are the attributes of the Racer class:
success
- returns a boolean of True or False- If False, then other attributes will not exist
tag
- The racer's current team's taguserid
- The userid of the racercarIDs
- A list of cars in nitrotype's car idsusername
- The username of the racername
- Current display name of the racertag_and_name
- The user's team tag and display name put together- If not in team, will only be the display name
membership
- Gold or regular membershipcar
- link to current car imagelevel
- Current level of racerexperience
- Amount of XP achievedpoints
- Amount of achievement points achievedcountry
- Country of racerviews
- Player profile viewscreated
- Account creation timecars_owned
- Amount of cars ownedcars_sold
- Amount of cars soldcars_total
- Amount of cars owned and owned beforecurrent_car
- The name of the current car equippedcarid
- The id of the current car equippednitros
- The nitros owned by a Racernitros_used
- Amount of nitros used by the Racernitros_total
- Amount of nitros owned and used by the racerraces
- Amount of races the racer has finishedfirst
- Amount of races the racer placed firstsecond
- Amount of races the racer placed secondthird
- Amount of races the racer placed thirdfirst_perc
- Percentage of races the racer placed firstsecond_perc
- Percentage of races the racer placed secondthird_perc
- Percentage of races the racer placed thirdwpm_average
- The racer's current wpm averagewpm_high
- The racer's current highest wpm Note: These stats might return an error as the racer may have not raced in the last 24 hours, in the season, or in the entire length of their accountboards
- The racer's stats in jsondaily_pre
- The racer's daily stats in jsondaily_races
- Amount of races in the last 24 hoursdaily_speed
- Average speed in the last 24 hoursdaily_accuracy
- Average accuracy in the last 24 hoursdaily_points
- Points accumulated from the last 24 hoursseason_pre
- The racer's season stats in jsonseason_races
- Amount of races in the current seasonseason_speed
- Average speed in the current seasonseason_accuracy
- Average accuracy in the current seasonseason_points
- Points accumulated from the current seasonfriend_reqs_allowed
- returns True if racer accepts friend requests, else it returns Falselooking_for_team
- returns True if racer accepts team invites, else it returns False