Giter Site home page Giter Site logo

boorudex's Introduction

Hi there 👋

I'm dotnet developer especially C# and currently live in Indonesia.

boorudex's People

Contributors

dependabot-preview[bot] avatar shiroechi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

boorudex's Issues

HELP WANTED!

Template for e621.net

  • Implement all GET method
    it's easy to do, but there's a rate limit for request.
  • Can manage the limit rate (2 request/second)
    It can handle if there's many request at once. My idea is using queue, but I think it again it not efficient. Other template don't have this rate limit thing for request GET method.
    this what I don't know to handle it.

Null HttpClient

BooruDex/Booru/Booru.cs

Lines 258 to 260 in c89b2ff

using (var request = new HttpRequestMessage(HttpMethod.Get, url))
using (var response = await this._HttpClient.SendAsync(request, HttpCompletionOption.ResponseHeadersRead))
using (var stream = await response.Content.ReadAsStreamAsync())

BooruDex/Booru/Booru.cs

Lines 309 to 311 in c89b2ff

using (var request = new HttpRequestMessage(HttpMethod.Get, url))
using (var response = await this._HttpClient.SendAsync(request, HttpCompletionOption.ResponseHeadersRead))
using (var stream = await response.Content.ReadAsStreamAsync())

When creating client with null HttpClient it not called the lazy option.

Do not clone and dispose

BooruDex/Booru/Booru.cs

Lines 821 to 826 in c89b2ff

using (var temp = await this.GetJsonResponseAsync<JsonDocument>(url))
{
obj = temp.RootElement.Clone();
}

don't clone the object then dispose it, if you do like that it will consume more CPU and RAM

Using 2 tags at the same time via DanbooruDonmai got an error about the number of tags.

Try to run this:

var a = new DanbooruDonmai();
var b = await a.GetRandomPostAsync(1, new string[] { "animated", "arknights" });

You'll get something like this

Unexpected error occured.
Status code = 422
Reason = Unprocessable Entity.

I don't know why, but when trying to GET /posts.xml?random=true&limit=1&tags=animated arknights it redirects you to /posts.xml?limit=1&tags=animated+arknights+random:1 and their API thinks that you are trying to find 3 tags instead of 2

Get request on “Find similar”

Hi there. I am trying to make Booru desktop tool for finding similar images and getting their links (like they did it on yandere). Yesterday I looked through the functions of your library, but haven’t seen something alike. Is there any way I have access to this functionality, or it’s a tool for the websites’ developers use only. Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.