• MentalEdgeOPM
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    5 months ago

    Yea I just chucked AnilistPython in there lol

    Most of what I did was pulling a good search term from saucenao/danbooru, while leaving in some basic regex to find one from a posts title or comment/body text as a fallback once I change Soutaku to be able to respond without it detecting an image.

    • wjs018@ani.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 months ago

      I see, I was envisioning something like /u/Roboragi from reddit. Also, for the AniList api, I have simply been using requests and parsing the response as a dict. In case you are curious:

      • Example query text: link
      • Querying the api with requests: link
      • Example parsing show info from response: link
      • MentalEdgeOPM
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 months ago

        Yup. Something like that is the plan.

        Also thanks, I’mma take a look at that. That python package has not been updated for a while, so using requests might be warranted.

        AniLists search seems to work pretty damn well, too, the first result is the one you want 99% of the time.