Name | dredarkLeaderboardLib JSON |
Version |
2.0.3.post3
JSON |
| download |
home_page | None |
Summary | A Library to fetch from the Deep Space Airships leaderboards. |
upload_time | 2024-10-01 17:41:03 |
maintainer | None |
docs_url | None |
author | JaWarrior12 |
requires_python | >=3.10 |
license | MIT License Copyright (c) 2024 JaWarrior12 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
dredark.io
drednot.io
drednot
dredark
deep space airships
jawarrior
jamwarior
leaderboard
|
VCS |
|
bugtrack_url |
|
requirements |
beautifulsoup4
bs4
certifi
charset-normalizer
idna
requests
soupsieve
urllib3
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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:
``` python
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)```
Raw data
{
"_id": null,
"home_page": null,
"name": "dredarkLeaderboardLib",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "dredark.io, drednot.io, drednot, dredark, deep space airships, jawarrior, jamwarior, leaderboard",
"author": "JaWarrior12",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/39/2e/a7b9c987dddd713ac6f563b2366a48cb80a2de08f42f45bb81fa844d32ee/dredarkleaderboardlib-2.0.3.post3.tar.gz",
"platform": null,
"description": "# dredarkLeaderboardLib\nDredark Leaderboard Library for Python! \nThe library contains functions to fetch data from the Deep Space Airships (drednot.io) leaderboard pages.\n\n**Usage of This Library to Violate the Deep Space Airships Terms of Service Is Not Allowed**\n\nBase Example:\n``` python\nimport src.dredarkLeaderboardLib as dll\n\nURL=\"https://drednot.io/leaderboard/?cat=boss_shield&by=pilot\"\nPER_PAGE_LIMIT=10 # Fetches the first 10 leaderboard entries on each page\nTOTALPAGES=10 # Only reads from the first 10 pages\nstatistics=dll.Leaderboard() # Initiates the Leaderboard Object\nstatistics.scan_Leaderboard(URL, TOTALPAGES, PER_PAGE_LIMIT) # Scrapes the provided URL and stores the data\nprint(statistics.shipData) # Prints the scrapped data\n#Or\nprint(statistics.return_data()) # Alternative Method to print data\nprint(statistics.fetch_entry(\"rank\",10)) # Prints the entry at rank 10\nprint(statistics.fetch_ranks(1,10,True,True)) # Fetches Ranks 1-10 (1 & 10 are Included)\nprint(statistics.fetch_ranks(1,10,True,False)) # Fetches Ranks 1-10 (10 is exclusive, so only ranks 1-9 are actually returned)\nprint(statistics.fetch_ranks(1,10,False,True)) # Fetches Ranks 1-10 (1 is exclusive, so only ranks 2-10 are actually returned)\nprint(statistics.fetch_ranks(1,10,False,False)) # Fetches Ranks 1-10 (1 & 10 are exclusive, so only ranks 2-9 are actually returned)```\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 JaWarrior12 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "A Library to fetch from the Deep Space Airships leaderboards.",
"version": "2.0.3.post3",
"project_urls": {
"Discord": "https://discord.gg/WGmCS7pJ48",
"Homepage": "https://github.com/JaWarrior12/dredarkLeaderboardLib",
"Issues": "https://github.com/JaWarrior12/dredarkLeaderboardLib/issues",
"Wiki": "https://github.com/JaWarrior12/dredarkLeaderboardLib/wiki"
},
"split_keywords": [
"dredark.io",
" drednot.io",
" drednot",
" dredark",
" deep space airships",
" jawarrior",
" jamwarior",
" leaderboard"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "793f4b65d4bb7246d8059d0e4584b84e5af748bf180ef15c42867e64fed93dc3",
"md5": "ed75d2a366eb101ca69ac09e08116535",
"sha256": "14f9e60fde53cd681c2bd4dce2a55b51cf94e84f488d0bbefd15a2c247822cf0"
},
"downloads": -1,
"filename": "dredarkLeaderboardLib-2.0.3.post3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ed75d2a366eb101ca69ac09e08116535",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 10381,
"upload_time": "2024-10-01T17:41:01",
"upload_time_iso_8601": "2024-10-01T17:41:01.537087Z",
"url": "https://files.pythonhosted.org/packages/79/3f/4b65d4bb7246d8059d0e4584b84e5af748bf180ef15c42867e64fed93dc3/dredarkLeaderboardLib-2.0.3.post3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "392ea7b9c987dddd713ac6f563b2366a48cb80a2de08f42f45bb81fa844d32ee",
"md5": "e3520a2bfe81c8b87e6e3d0f181fb377",
"sha256": "378562b8b9db1acea29dba3f4af75d9d89f08b79fbb0633245429e208362c59a"
},
"downloads": -1,
"filename": "dredarkleaderboardlib-2.0.3.post3.tar.gz",
"has_sig": false,
"md5_digest": "e3520a2bfe81c8b87e6e3d0f181fb377",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 8401,
"upload_time": "2024-10-01T17:41:03",
"upload_time_iso_8601": "2024-10-01T17:41:03.009225Z",
"url": "https://files.pythonhosted.org/packages/39/2e/a7b9c987dddd713ac6f563b2366a48cb80a2de08f42f45bb81fa844d32ee/dredarkleaderboardlib-2.0.3.post3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-01 17:41:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "JaWarrior12",
"github_project": "dredarkLeaderboardLib",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "beautifulsoup4",
"specs": [
[
">=",
"4.12.3"
]
]
},
{
"name": "bs4",
"specs": [
[
">=",
"0.0.2"
]
]
},
{
"name": "certifi",
"specs": [
[
">=",
"2024.8.30"
]
]
},
{
"name": "charset-normalizer",
"specs": [
[
">=",
"3.3.2"
]
]
},
{
"name": "idna",
"specs": [
[
">=",
"3.8"
]
]
},
{
"name": "requests",
"specs": [
[
">=",
"2.32.3"
]
]
},
{
"name": "soupsieve",
"specs": [
[
">=",
"2.6"
]
]
},
{
"name": "urllib3",
"specs": [
[
">=",
"2.2.3"
]
]
}
],
"lcname": "dredarkleaderboardlib"
}