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"
PER_PAGE_LIMIT=10 # Fetches the first 10 leaderboard entries on each page
TOTALPAGES=10 # Only reads from the first 10 pages
statistics=dll.Leaderboard() # Initiates the Leaderboard Object
statistics.scan_Leaderboard(URL, TOTALPAGES, PER_PAGE_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.3.post1.tar.gz (8.4 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.3.post1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for dredarkleaderboardlib-2.0.3.post1.tar.gz
Algorithm Hash digest
SHA256 336eca01c8accb440866b20f35b9dba8a4484e498887e9104bebc3a6e702061b
MD5 74b547c6052627b7e3151f85201b2884
BLAKE2b-256 36bd3964058b78eea6a190b9df0ab3930496474033a681d5b01af07a9e1fe027

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dredarkLeaderboardLib-2.0.3.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8473bad69b2a25a854873327b50b2c340dd1a8bb93f709346ef7c74ca58adb0
MD5 f89388402b1eeead5c50adee1fe3982c
BLAKE2b-256 a81bdc44074815882a9a7a74d6249212ca5b3f5bff6c62b3f49b9bf4697c3316

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