Skip to main content

A Library to fetch from the Deep Space Airships leaderboards.

Project description

dredarkLeaderboardLib

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

Currently in Pre-Release

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-1.0.0a11.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

dredarkLeaderboardLib-1.0.0a11-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file dredarkLeaderboardLib-1.0.0a11.tar.gz.

File metadata

  • Download URL: dredarkLeaderboardLib-1.0.0a11.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for dredarkLeaderboardLib-1.0.0a11.tar.gz
Algorithm Hash digest
SHA256 0000c49c37895ab57e9f01e9e35b937b6f428022e5382f877b6b92103b45d9cd
MD5 b277cc28adbbd9c8a8e3ffc141642bf0
BLAKE2b-256 538acacbb3bffae209e56f9a9eee8a6165669c9326716cafafe079c49175ea10

See more details on using hashes here.

File details

Details for the file dredarkLeaderboardLib-1.0.0a11-py3-none-any.whl.

File metadata

File hashes

Hashes for dredarkLeaderboardLib-1.0.0a11-py3-none-any.whl
Algorithm Hash digest
SHA256 f98d23df17ec41f1d7e64ae13c1408f6794581caba246c903a947d01f783adb8
MD5 08bd516b96db072faa0fd91b886433f7
BLAKE2b-256 1573d3179ddd71160d0a5c1cac848a3bc2724554de841f3de1172c1ca630c106

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