<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Nate,</p>
<p>I've recorded the script in action which can be accessed with
this link:
<a class="moz-txt-link-freetext" href="https://benbonacci.com/files/shares/1w-bug-safari-demo.mp4">https://benbonacci.com/files/shares/1w-bug-safari-demo.mp4</a>
(Expires in 1 week)</p>
<p>Regards,</p>
<p>Ben<br>
<span style="font-family:monospace"></span></p>
<div class="moz-cite-prefix">On 23/7/23 23:43, Nate Graham wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1533e394-d4ee-c584-d890-025c9786e776@kde.org">Very cool
stuff. Can we see it in action anywhere?
<br>
<br>
Nate
<br>
<br>
<br>
On 7/23/23 01:38, Ben Bonacci wrote:
<br>
<blockquote type="cite">Hi Ben,
<br>
<br>
Thanks for the suggestion! Now after each request the script
will wait 1-5 seconds before making the next request.
<br>
<br>
Regards,
<br>
<br>
Ben
<br>
<br>
On 22/7/23 22:30, Ben Cooksley wrote:
<br>
<blockquote type="cite">On Sun, Jul 23, 2023 at 12:18 AM Ben
Bonacci <a class="moz-txt-link-rfc2396E" href="mailto:ben@benbonacci.com"><ben@benbonacci.com></a> wrote:
<br>
<br>
   Hi everyone!
<br>
<br>
<br>
Hi Ben,
<br>
<br>
<br>
   For the past few days I've been working on Bug Safari,
which is a
<br>
   Python
<br>
   script that gets statistics for Plasma bugs and sends a
report to the
<br>
   #plasma room on Matrix, which is one of the dot points for
KDE's
<br>
   Automation goal.
<br>
<br>
   I've now got the script uploaded to Invent at
<br>
   <a class="moz-txt-link-freetext" href="https://invent.kde.org/bbonacci/bug-safari">https://invent.kde.org/bbonacci/bug-safari</a> for anyone to
look
<br>
   over, make
<br>
   improvements or implement.
<br>
<br>
<br>
Thanks for this, I have just had a quick look over the code
and it overall looks pretty reasonable, and also follows best
practice of setting it's own user agent.
<br>
<br>
One small suggestion would be to add some small sleeps in to
ensure that the server endpoints don't get hammered by your
requests.
<br>
While the script by itself is fairly innocent, if similar
scripts were added for a series of other channels and they all
ran at the same time, this could result in a rush on the
server that could make it inaccessible to normal users (or at
the very least impact responsiveness).
<br>
<br>
Adding some sleeps (ideally for a random number of seconds as
people tend to pick the same cron times to run stuff on) will
ensure this doesn't become an issue.
<br>
<br>
<br>
   Regards,
<br>
<br>
   Ben
<br>
<br>
<br>
Cheers,
<br>
Ben
<br>
<br>
<br>
   --    Ben Bonacci
<br>
   <a class="moz-txt-link-freetext" href="https://benbonacci.com">https://benbonacci.com</a>
<br>
   C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976
<br>
<br>
   Quote of the Day: "What's the good of living if you don't
try a
<br>
   few things?" - Charles M. Schulz
<br>
<br>
</blockquote>
--Â <br>
Ben Bonacci
<br>
<a class="moz-txt-link-freetext" href="https://benbonacci.com">https://benbonacci.com</a>
<br>
C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976
<br>
<br>
Quote of the Day: "If you only read the books that everyone else
is reading, you can only think what everyone else is thinking."
- Haruki Murakami
<br>
<br>
</blockquote>
</blockquote>
<pre class="moz-signature" cols="72">--
Ben Bonacci
<a class="moz-txt-link-freetext" href="https://benbonacci.com">https://benbonacci.com</a>
C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976
Quote of the Day: "It does not matter how slowly you go as long as you do not stop." - Confucius</pre>
</body>
</html>