y-young / nazurin

🎉 Images collection done right. Telegram 图片收藏机器人 / A Telegram bot that helps you collect ACG illustrations.
http://nazurin.readthedocs.io
MIT License
260 stars 58 forks source link

DeviantArt API now requires CSRF token #55

Closed y-young closed 1 year ago

y-young commented 1 year ago

Describe the bug DeviantArt API (https://www.deviantart.com/_napi/da-user-profile/shared_api/deviation/extended_fetch?type=art&deviationid=) now requires a valid CSRF token to be passed via csrf_token parameter.

To Reproduce Steps to reproduce the behavior:

  1. Send GET request to https://www.deviantart.com/_napi/da-user-profile/shared_api/deviation/extended_fetch?type=art&deviationid=93506493
  2. Returns error:
    {
    "error": "invalid_request",
    "errorDescription": "Invalid or expired form submission",
    "errorDetails": {
      "csrf": "missing"
    },
    "status": "error"
    }

Expected behavior Should be able to get deviation details.

Additional context