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.

Usage of This Library to Violate the Deep Space Airships Terms of Service Is Not Allowed

Base Example:

import src.dredarkLeaderboardLib as dll

URL="https://drednot.io/leaderboard/?cat=boss_shield&by=pilot"
PER_PAGE_LIMIT=10 # Fetches the first 10 leaderboard entries on each page
TOTALPAGES=10 # Only reads from the first 10 pages
statistics=dll.Leaderboard() # Initiates the Leaderboard Object
statistics.scan_Leaderboard(URL, TOTALPAGES, PER_PAGE_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_entry("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.3.post3.tar.gz (8.4 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.3.post3-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file dredarkleaderboardlib-2.0.3.post3.tar.gz.

File metadata

File hashes

Hashes for dredarkleaderboardlib-2.0.3.post3.tar.gz
Algorithm Hash digest
SHA256 378562b8b9db1acea29dba3f4af75d9d89f08b79fbb0633245429e208362c59a
MD5 e3520a2bfe81c8b87e6e3d0f181fb377
BLAKE2b-256 392ea7b9c987dddd713ac6f563b2366a48cb80a2de08f42f45bb81fa844d32ee

See more details on using hashes here.

File details

Details for the file dredarkLeaderboardLib-2.0.3.post3-py3-none-any.whl.

File metadata

File hashes

Hashes for dredarkLeaderboardLib-2.0.3.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 14f9e60fde53cd681c2bd4dce2a55b51cf94e84f488d0bbefd15a2c247822cf0
MD5 ed75d2a366eb101ca69ac09e08116535
BLAKE2b-256 793f4b65d4bb7246d8059d0e4584b84e5af748bf180ef15c42867e64fed93dc3

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