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.0a10.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.0a10-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dredarkLeaderboardLib-1.0.0a10.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.0a10.tar.gz
Algorithm Hash digest
SHA256 7cca4a1b88d486f1e7ed8f0d7c217237f137b7adfa1b7271174c53530f763776
MD5 39f67f080374b99d9e5f067c2eaa060b
BLAKE2b-256 e84c76f359e39c300906f19067b6b3c87202f379a23b30025d3da2f792dd1122

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dredarkLeaderboardLib-1.0.0a10-py3-none-any.whl
Algorithm Hash digest
SHA256 fb1afe5f68f814808b77b5907c1b26bfe89ae74c00a7fbfa140af3adc6925815
MD5 58b82cd25f7f0ebe2e777be4630763eb
BLAKE2b-256 8f2b9af561a6ee48b44eab5a336188b7b0a57f3dd35fdba6e771955223dcd468

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