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 displayNonelooking_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 displayNonetag_color: Color of the racer's tag. If the racer has no tag equipped, it'll displayNonenametag_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 displayNoneprofile_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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06f05a5090a90ac8fbd9190c90219c4d7823eb211307c4f42eb72af7c913ee1f
|
|
| MD5 |
6f9c16b06a09b730292b9a425ac7ab6f
|
|
| BLAKE2b-256 |
85ba35eff4be4ddba45cdd6d0ec3dd837a6f7f432535eeaaeaf7df4c9c43e919
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f01a7d6f713e314594ec97ec1d9a02498c25fb14265c995d550cada654a0f31a
|
|
| MD5 |
03f0995d716f42c27c5572097c1839e0
|
|
| BLAKE2b-256 |
7475e024e394759f17b499d8b0789dc55ecb0108d6a28b840de9c1f0a5d2f388
|