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

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.tar.gz (8.0 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-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dredarkleaderboardlib-2.0.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for dredarkleaderboardlib-2.0.2.tar.gz
Algorithm Hash digest
SHA256 04d9815928eec7834a1c0bb7d32c869925cbbe89ef941d7618683e777330b2f2
MD5 4dcec9ddf09f4843157340535867391a
BLAKE2b-256 99462cd40322bb3776283ce8746d68bcc6422a4a0d6db89654a6eb9797488164

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dredarkLeaderboardLib-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1d7241f46d4569e16825638c3803fc4b1e155455869ed6527c0526415dea2bad
MD5 35f0dc086f0494dc53185955d8a092b9
BLAKE2b-256 589e899a397d2c26e5ec2bd9dfadcc56cbeed54078fb268a7319ef831df72691

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