Open provinzio opened 3 months ago
I don't think this works. Categories are currently expected to be a flat structure, not a tree.
I am not too big of a fan of the category update like this anyways as it may breaks existing ads.
I have actually no idea how the categories work, but I just did some quick regex search an replace magic to flatten the structure.
Hope it helps.
Ah ok, now I see your point... I'll reformat the categories.yaml
Ok, I added all missing categories from https://github.com/Second-Hand-Friends/kleinanzeigen-bot/pull/274 at the bottom.
I haven't sorted them in, because that could be too much of a pain.
I was quite random when changing the keys for new duplicated entries. Please have look and tell me what you think about it.
Easter egg: Reciever has multiple different typos but is never written without typos (reciver, receiver)
@provinzio Good approach!
However, the bot is still unable to publish ads even with this PR. I am still getting random errors for Art e.g.
[ERROR] TimeoutError: Failed to set special attribute [art_s]
For category
special_attributes:
art_s: sonstige
condition_s: like_new
versand_s: f
I think the problem is with the download option, where the category is not saved like the ones you have updated. It requires mapping for it to work properly.
Issue #, if available: replaces https://github.com/Second-Hand-Friends/kleinanzeigen-bot/pull/274
Description of changes: fixed the pipeline of the other PR by converting the encoding of categories.yaml-file to utf-8
I haven't tested the categeories, just fixed the pipeline.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.