[ / / / / / / / / / / / / / ] [ dir ]

/hydrus/ - Hydrus Network

Bug reports, feature requests, and other discussion for the hydrus network.
Name
Email
Subject
Comment *
File
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Options

Allowed file types:jpg, jpeg, gif, png, webm, mp4, swf, pdf
Max filesize is 16 MB.
Max image dimensions are 15000 x 15000.
You may upload 5 per post.


New user? Start here ---> http://hydrusnetwork.github.io/hydrus/

Experienced user with a bit of cash who wants to help out? ---> Patreon

Current to-do list has: 1,942 items

Current big job: Finishing up Qt release, back to en masse tag management improvements


File: 68de6f0ee6612b8⋯.jpg (73.31 KB, 813x484, 813:484, pepe-the-frog-matt-furie-h….jpg)

cb8e37  No.5629

I wouldn't think hydrus has a simple HTTP api

it would be nice if I could send a request over http with some credentials (or not) to a service that listens on the webserver port.

I'm thinking something like

[code]

{

"search_args":["system:age < 0y0m7d0h","meme","character:pepe"],

"order":"random",

"result_count":30,

"page":0

}

Not perfect, pagination is there since querying a response with 10k images is going to take ages, so having a limit, then sending another request for another page of results is ideal, however it would be implemented.

I'm basically just wanting a simple way to get images, that isn't limited to a shared gallery, and some fucked up HTML scraping

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

cb8e37  No.5630

didn't close my code tags :DDDDDDDD

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

9ca2f2  No.5638

File: eb2449b43d56884⋯.jpg (142.54 KB, 1358x970, 7:5, eb2449b43d5688413f42678f83….jpg)

I absolutely plan to do this, although it will be a big job.

The first step (which has been most requested by other users) will be to add a POST request that takes a file path to import (and some tags with it). This should make it easier to write scripts that pull files and tags from complicated sources and then push them into hydrus.

Performing search queries through a common standard like json would also be great, although allowing remote queries (as opposed to only accepting from localhost) would take care to get right, maybe some login system or other clientside permissions setup. Wouldn't want to make a public-facing all-access portal to all your media!

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

cb8e37  No.5651

File: 7488a63f3cab435⋯.jpg (102.49 KB, 1920x1080, 16:9, 7488a63f3cab435f0ff92f6579….jpg)

That's why I'm thinking of having a API service, which could have tokens for access, like a password as such. this would be a part of the URL for api access.

Each token could have limitations like rate-limiting, max allowed items in a single response, or so on.

However, if you were to have public facing, if you actually needed to download the image, it would have to be in an image gallery / you need to be running a image repository with token access.

Adds to the complication.

But even just having it as a local access, with access to local paths for getting images / putting images makes provides the most functional benefit

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

180463  No.5657

File: dab5cb2ccd9df3f⋯.jpg (75.72 KB, 640x854, 320:427, 6215372 _c1609e37d8d5d7fad….jpg)

Does this mean we will eventually be able to incorporate hydrus' features into our own programs through an API?

I'd love to get into some Big Data stuff, hydrus would seem like a good starting point.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

cb8e37  No.5667

File: 434906e7fc50cc8⋯.jpg (1.13 MB, 3440x1440, 43:18, 434906e7fc50cc8d1ddde7d202….jpg)

>>5657

That's basically what I want.

I, or anyone else, can easily make my own program, in any language, that uses hydrus' own image or tag repository.

A python script to return a random image

A browser webextension to see if you have tags for an image (system:hash == query)

Could get into the nitty gritty. Return a bunch of values to determine the average dimensions of all your images :^)

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

9ca2f2  No.5750

File: b64f4cea56fb1cb⋯.jpg (260.15 KB, 600x849, 200:283, b64f4cea56fb1cb452f86d6ca5….jpg)

>>5657

>>5667

Yeah. It'll be in some form of 'hydrus opens an api on a port using http GET/POST, and your external process talks to it'. Probably in JSON as appropriate.

I figure when we have the initial skeleton of this set up, I can add internal functions in my usual schedule. I'm not opposed to anything being easily accessible, so if you can think it, I should think I'll be willing to add it.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

8ec92c  No.7712

File: 664257cbfc33ca6⋯.jpg (86.13 KB, 720x653, 720:653, 664257cbfc33ca65a21efac239….jpg)

Did this get anywhere?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

114a1d  No.7715

>>7712

Since this will be a big job, I will put it on the next 'big thing to work on next' poll, which will be up after I am done with the current downloader overhaul.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



[Return][Go to top][Catalog][Nerve Center][Post a Reply]
Delete Post [ ]
[]
[ / / / / / / / / / / / / / ] [ dir ]