Skip to main content

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.

Metadata

Release files for curse-app-api 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for curse-app-api 1.0.1
File Size Uploaded
curse_app_api-1.0.1.tar.gz 20.8 kB Details

Release files / curse_app_api-1.0.1.tar.gz

Download URL curse_app_api-1.0.1.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1951b17a6c978aa0c3775bfdaf1c17c26c362646f6095256db7a664d2308dd4a
BLAKE2b-256 checksum
How to use checksums
910811707c48a72dc4137139ff3d6ac2f68eb5489e34862c9b8ea6d9bc38a58a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page