User talk:Termininja

From Wikidata
Jump to navigation Jump to search
 Archives: 

Your bot doesn't seem to be respecting mw:Manual:Maxlag and is editing too fast. Your bot appears to have been blocked for this already multiple times. Please fix your code and share link to the commit where you fixed your code so we can verify it. Multichill (talk) 16:34, 9 February 2020 (UTC)[reply]

User:Multichill Can you recheck the logs again, because I even do at least 1 sec sleep between edits (how was suggested 4 years ago) --Termininja (talk) 16:44, 9 February 2020 (UTC)[reply]
That's not how it works. If the maxlag is too high your bot shouldn't be doing any edits at all. Multichill (talk) 17:02, 9 February 2020 (UTC)[reply]
Just append maxlag=5 to every API request you do. If the lag is too high, you'll get an error like this one. Wait at least for the lag field (more is better) before attempting the same edit again. Multichill (talk) 17:26, 9 February 2020 (UTC)[reply]
@Multichill:, Here is the part which I updated about maxlag in my API request method:
public string PostHttp(string url, Dictionary<string, object> parameters, Dictionary<string, object> body,
    bool getCookies, bool allowAutoRedirect)
{
    var result = Post(url, parameters, body, getCookies, allowAutoRedirect);
    var match = Regex.Match(result, @"Waiting for all: ([\.\d]+) seconds lagged", RegexOptions.Multiline);
    if (result.Contains("maxlag") && match.Success)
    {
        var lag = match.Groups[1].Value;
        Console.WriteLine("Maxlag: Sleep for " + lag + " seconds");
        Thread.Sleep((int)(decimal.Parse(lag) * 1000));

        return PostHttp(url, parameters, body, getCookies, allowAutoRedirect);
    }

    return result;
}

Should I do something more? --Termininja (talk) 13:14, 15 February 2020 (UTC)[reply]

Image identification

To identify a species depicted in an image, use depicts (P180) instead of statement is subject of (P805). --EncycloPetey (talk) 19:41, 21 February 2020 (UTC)[reply]

Hi! I don't think this is correct. According to Family-group names of Recent fishes (Q29461869) p.57 the authorship is Rafinesque 1815. --Succu (talk) 11:33, 23 February 2020 (UTC)[reply]

Which ID for GBIF taxon ID (P846) is correct - 7662 or 141407021? --Termininja (talk) 11:50, 23 February 2020 (UTC)[reply]