koillection icon indicating copy to clipboard operation
koillection copied to clipboard

[Feature Request] Api scrapper field

Open tedr56 opened this issue 1 year ago • 2 comments

First, thanks for this niece piece of software. I just installed it and I have a few idea for my usecase that others may need.

As mentionned in #721, a data scrapper is really important for big collections fields with public data. I was thinking a Api field with sub Url, Header, Query subfields, that could use previous data fields. For example, I'm working on pokemon cards, but could be anything:

CardNumber: Number
Set: String
ApiData:
  Url: https://api.pokemontcg.io/v2/cards
  Method: Get
  Headers:
    x-api-key: 0123456789
  Query: q=number:{{CardNumber}} set:{{Set}}
Illustration: ApiData.images.large

I know this a big piece of code. I tried to look into it but I'm not that good of a developper. What do you think?

Thanks.

tedr56 avatar Jul 25 '23 08:07 tedr56