User talk:Difool

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Welcome to Wikimedia Commons, Difool!

-- Wikimedia Commons Welcome (talk) 23:14, 4 December 2015 (UTC)[reply]

Adding Structured Data with a bot

[edit]

Hi, I am setting up a bot to upload files. Could you tell how to add Structured Data with a bot please? Thanks, Yann (talk) 19:28, 26 May 2023 (UTC)[reply]

Hi, I uploaded some source to [1]https://github.com/DifoolBot/commons/blob/main/change_structureddata.py. It's a python class that generates structured data for a page by the json that you give it. I generate the json with another program.
I based the code on
  1. https://byabbe.se/2020/09/15/writing-structured-data-on-commons-with-python, and
  2. https://github.com/multichill/toollabs/blob/master/bot/commons/wikidata_uploader.py
Difool (talk) 13:58, 27 May 2023 (UTC)[reply]

Season's Greetings

[edit]
Happy New Year

Hi Difool,
Very best wishes for 2024

Thank you for your contributions to Commons and
of course,
for Dofoolbot's contributions to nl.wiktionary :-)
Lotje (talk) 11:35, 29 December 2023 (UTC)[reply]