Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

TheMoonThatRises/NitrotypePy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NitrotypePy

This package accesses nitrotype's official api along with its unofficial user api. Currently still in development.

Installation

pip3 install git+https://github.com/RangerEmerald/NitrotypePy

or

pip3 install git+https://github.com/RangerEmerald/NitrotypePy@branch-name

or

pip3 install NitrotypePy

About

The 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.

Usage

Access user information:

from NitrotypePy import user

print(user('corndog')) # Or use any other username. Make sure it is their username, not their display name

Get team information:

from NitrotypePy import teams

print(teams('NT')) # Or any other team tag

Get 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 id

Access any object from the bootstrap:

from NitrotypePy import bootstrap

print(bootstrap("CASH_SENDING")) # Or any other portion of the bootstrap

Access raw api:

from NitrotypePy import api

print(api("")) # Or any other endpoint. For now, this is only a "get" request