Skip to main content

Cuseforge App API

Project description

Project description might be outdated on PyPI, latest version available on Github.

Curseforge App API

The package provides classes to interact with Curseforge app API.

Note: I wrote neither API nor documentation (btw documentation with methods and results took from there).

Installation/Upgrade

  1. Requires at least python 3.6

  2. Install/Upgrade with $ pip install --user --upgrade curse-app-api

Requirements

requests>=2.25.1
selenium>=3.141.0
selenium-requests>=1.3
webdriver-manager>=3.4.2
msedge-selenium-tools>=3.141.3

Usage:

# getting API class
from curse_app_api import CurseAPI, WDCurseAPI

# creating API class
api = CurseAPI()

# example method 
print(api.get_category_timestamp())

# using API with webdriver (this part works slowly because it downloads webdrivers and tries to invoke them)
wdapi = WDCurseAPI()

# it will print the same result as previous print
print(wdapi.get_category_timestamp())

# also if something goes wrong, you can get last query link
print(api.last_query_link)

# and its response
print(api.last_response)

Current supported WebDrivers

For current supported web drivers you don't have to download them and install manually. To use Safari web driver, you need to configure it first: run once safaridriver --enable in terminal.

ChromiumDriver
MSEdgeDriver
GeckoDriver (Firefox)
OperaChromiumDriver
Safari web driver

Contributing

If you want to contribute:

  1. If you find bugs related to this project, open an issue in Github issues tracker.

  2. If you want add a new feature, fork this repo, make changes locally and open a pull request. I'll check changes myself and merge your code into main branch.

Note: This API implements curseforge APP API != Curseforge. It means that not all projects on Curseforge can be captured by API, only those, which seen by Curseforge Desktop. So don't report bugs related to this unless project can be seen by Curseforge desktop. If you report this bug, please, provide a screenshot that your project wasn't captured by API but can be seen in Curseforge Desktop.

TODO

Caching webdriver for subsequent usage.

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

curse_app_api-1.0.1.tar.gz (20.8 kB view details)

Uploaded Source

File details

Details for the file curse_app_api-1.0.1.tar.gz.

File metadata

  • Download URL: curse_app_api-1.0.1.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.3

File hashes

Hashes for curse_app_api-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1951b17a6c978aa0c3775bfdaf1c17c26c362646f6095256db7a664d2308dd4a
MD5 8bfd82fec3b49e23d97a33d178e43c1d
BLAKE2b-256 910811707c48a72dc4137139ff3d6ac2f68eb5489e34862c9b8ea6d9bc38a58a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page