zer0p1us / mod-mender

Update your mod list automatically
MIT License
1 stars 0 forks source link

Curseforge support #9

Open zer0p1us opened 10 months ago

zer0p1us commented 10 months ago

There needs to be support for mods that are hosted on Curseforge.

Unlike Modrinth, Curseforge doesn't offer any API to retrieve mod data. The Implementation of Curseforge support will need a scraper to retrieve the data from the mod page, this may need frequent updates as the website changes or css classes & id get renamed (I think curseforge is in the midst of an update to a new website).

Regardless of the issues this is still a necessary support so long as mod devs post solely on curseforge (eg. InvHud+, Masdy's whole lineup of tweakeroo, litematica ect.)

zer0p1us commented 10 months ago

A non function support will be added where a http request will be made and will get a 403 response back because Curseforge doesn't allow for web scraping. For v0.2.0 this will be shipped as is, should a reasonable (without requiring a webdriver) workaround is found this might change.