Skip to main content

A Library to fetch from the Deep Space Airships leaderboards.

Project description

dredarkLeaderboardLib

Dredark Leaderboard Library for Python!
The library contains functions to fetch data from the Deep Space Airships (drednot.io) leaderboard pages.

Current Verison: 2.0.2

Usage of This Library to Violate the Deep Space Airships Terms of Service Is Not Allowed

Base Example:

import src.dredarkLeaderboardLib as dll

URL="https://drednot.io/leaderboard/?cat=boss_shield&by=pilot"
LIMIT=10
TOTALPAGES=10
statistics=dll.Leaderboard() #Initiates the Leaderboard Object
statistics.scan_Leaderboard(URL, TOTALPAGES, LIMIT) #Scrapes the provided URL and stores the data
print(statistics.shipData) #Prints the scrapped data
#Or
print(statistics.return_data()) #Alternative Method to print data
print(statistics.fetch_ship("rank",10)) #Prints the entry at rank 10
print(statistics.fetch_ranks(1,10,True,True)) #Fetches Ranks 1-10 (1 & 10 are Included)
print(statistics.fetch_ranks(1,10,True,False)) #Fetches Ranks 1-10 (10 is exclusive, so only ranks 1-9 are actually returned)
print(statistics.fetch_ranks(1,10,False,True)) #Fetches Ranks 1-10 (1 is exclusive, so only ranks 2-10 are actually returned)
print(statistics.fetch_ranks(1,10,False,False)) #Fetches Ranks 1-10 (1 & 10 are exclusive, so only ranks 2-9 are actually returned)```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dredarkleaderboardlib-2.0.2.post1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dredarkLeaderboardLib-2.0.2.post1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file dredarkleaderboardlib-2.0.2.post1.tar.gz.

File metadata

File hashes

Hashes for dredarkleaderboardlib-2.0.2.post1.tar.gz
Algorithm Hash digest
SHA256 b79d22405d6789e6457b9f1e26c423a66d77d3c383c61b63f2937e0e9fdf43d7
MD5 41abde7a2c211df5a089c55d0012942d
BLAKE2b-256 e43e2a27f9603e58f826a3ab621d9d313f67decd240451f5ed35b0d289d92a29

See more details on using hashes here.

File details

Details for the file dredarkLeaderboardLib-2.0.2.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for dredarkLeaderboardLib-2.0.2.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 64077b2f6c03b7bf73de2ddbc238995a5f5e82babd36411b5ce0ba5e80b189f5
MD5 fb825af9cb08273b6f3789b3574f2054
BLAKE2b-256 606ef8a5071d023289b3a19e8c9cfb0137ad0480247385d9e50ef987683e6d9a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page