This package accesses nitrotype's official api along with its unofficial user api. Currently still in development.
pip3 install git+https://github.com/RangerEmerald/NitrotypePyor
pip3 install git+https://github.com/RangerEmerald/NitrotypePy@branch-nameor
pip3 install NitrotypePyThe endpoints this package uses are https://www.nitrotype.com/racer/ along with https://www.nitrotype.com/api/v2/. The first link is used only to access racer information, while the second one is nitrotype's offical api.
Access user information:
from NitrotypePy import user
print(user('corndog')) # Or use any other username. Make sure it is their username, not their display nameGet team information:
from NitrotypePy import teams
print(teams('NT')) # Or any other team tagGet top 100 teams:
from NitrotypePy import top
print(top())Get the latest news:
from NitrotypePy import news
print(news()) # Use this to get all the latest news
print(news(234)) # Use this to get the news by its idAccess any object from the bootstrap:
from NitrotypePy import bootstrap
print(bootstrap("CASH_SENDING")) # Or any other portion of the bootstrapAccess raw api:
from NitrotypePy import api
print(api("")) # Or any other endpoint. For now, this is only a "get" request