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-2.0.0.tar.gz (7.8 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.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dredarkleaderboardlib-2.0.0.tar.gz
  • Upload date:
  • Size: 7.8 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.0.tar.gz
Algorithm Hash digest
SHA256 cfcc02fd4f50dca3fa97954bb32d3a77c3046d512a384f0f52cbac2dfb9d2c09
MD5 1bbfcf08b2cb579a71d52927b425b5b2
BLAKE2b-256 2672f83e4bb591e1ce45a23cf1821327ce4689d1374b6088d80e52f548ed1618

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dredarkLeaderboardLib-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e6c8df9b61bd38ae5a9a2da3bcc18706bd628e17432ef18b2b90ba64017813e
MD5 b9c21e47b8a50b8868afe5fbb358f657
BLAKE2b-256 68e7bc75ac5af29e5d789ccc5eb82b534a7ed9e9084bb9f62aa8869b0c50f6a1

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