qweri0p / culturebot

Crappy discord bot that gives you random (wholesome) hentai
https://discord.com/api/oauth2/authorize?client_id=1177354553956511764&permissions=0&scope=bot
MIT License
1 stars 0 forks source link

add unwholesome culture #2

Closed qweri0p closed 3 months ago

qweri0p commented 11 months ago

nhentai put it's API behind bot protection, which is fucking stupid.

an API is made for non-humans to use, why put it behind cloudflare???!?!?!?!?!?

i will be unable to add unwholesome culture until nhentai fixes it's shit ):

the command file is done. it can be found in WIP/unwholesome.ts

if you know a workaround pls comment on this issue thx

qweri0p commented 11 months ago

i'm looking into the possibility to export json objects from

https://nhentai.net/api/galleries/search?query=doujinshi&page{insert index here}

from 1 to 14532 (right now, will increase with time)

i might be able to automate to get these json objects using a webbrowser that gets past the filter. then combine all objects into one blob.

fuck this shit

edit: should do https://nhentai.net/api/galleries/search?query=manga&page{insert index here} as well

qweri0p commented 9 months ago

TODO: check out https://github.com/FlareSolverr/FlareSolverr maybe this fixes it?

EDIT: it works :) might even be able to reuse the nhentai-api package

EDIT 2: nah i'll have to make another repo to get the JSON data https://github.com/qweri0p/nhentai-json

EDIT 3: this is seriously the worst. FlareSolverr is not suited to retrieving an entire database, page by page. i'll try to rework one of the nhentai clients to route everything through FlareSolverr. https://github.com/qweri0p/nhentai-api-flaresolverr

qweri0p commented 6 months ago

ok cool nhentai allows for bots on their site again lmao

qweri0p commented 6 months ago

fuck nhentai they enabled cloudflare ddos protection again

qweri0p commented 5 months ago

ok so nhentai's api works again

i think i'm gonna restart the nhentai-json project again as a definitive backup

keeping this issue open for now