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.0a9.tar.gz (4.1 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.0a9-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dredarkLeaderboardLib-1.0.0a9.tar.gz
  • Upload date:
  • Size: 4.1 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.0a9.tar.gz
Algorithm Hash digest
SHA256 da49155eeca0a1a183d92bc5bae268c753995c12c00ef48c647f025964a5f644
MD5 ed767931c66da6b2979a1ff1d2491fad
BLAKE2b-256 e04b23c41612552f9ad70a48661ad18e2636bff7b17e708aaaf3f52eaf6a17ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dredarkLeaderboardLib-1.0.0a9-py3-none-any.whl
Algorithm Hash digest
SHA256 86f013cff2badd43ff804f86404547e6c2fffe18ded40fca159cbc4a419dcc1b
MD5 74eddac1d9e107413305176f9f79276c
BLAKE2b-256 5befe31087900675d6168216db1b9360fc54c838054a068cd7600ef018cce69c

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