CuddleBear92 / Hydrus-Presets-and-Scripts

collection of presets and scripts for Hydrus
252 stars 50 forks source link

Fantia - 403 on posts #136

Open Azzurous opened 1 year ago

Azzurous commented 1 year ago

So the page parsing on the Fantia downloader seems to be working fine however all posts return a 403 and get ignored. I tried checking the cookies and some of the other issues here that mention "403" (eg. changing user agent) but it still persists, I unfortunately don't have the expertise to take this any further so please help. Edit: A potentially useful fyi, last time I used this downloader was 3 months ago and it worked fine then

kotonbu commented 1 year ago

Fantia made some changes and now requires a header to be sent with requests. Copying some instructions that someone made in the discord.

1. Go to fantia.jp and view the page source (ctrl+U)
2. Copy the value of <meta name="csrf-token" content="VALUE" />
3. In hydrus, go to network>data>manage http headers
4. Add a new header with "fantia.jp" as the web domain, "X-CSRF-Token" in the next row and the value you copied from step 2 in the third box.