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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dredarkleaderboardlib-2.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 76564549ba0638785bf9858b5d47c0940e2e62c6093ba0e7f0985bdbba43a055
MD5 176572ed214df636020c57ca244eae94
BLAKE2b-256 1df6009f8cc37d234459f14f022f6ef0b2155491baf19fc41a8b04d93f36f78b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dredarkLeaderboardLib-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ccde80eeba6990b23114f4744ced761b5d8a54ccbcbcb4fac7f299808e4fbb1
MD5 60f69e8b343b61dad1b3888587b4f9e4
BLAKE2b-256 9ebc8005680d4db39f6e69c37d9723d311ee7754790c9d6ac178a444d3b220a9

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