[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] User Roles

Hi Martin,

That's a good question. If I'm totally honest, I'm not sure what to expect
from it. For the past few months I've had the V1 of the Twitter Bot running
on my "work" Twitter account. This means no university branding and no
being shared by the university to the public etc.

Some weeks a tweet gets found and liked/retweeted by a big account and it
gets a lot of clicks. Other weeks it's quiet. Last week (the first real
week back since Christmas) we had 39 unique social media users visiting the
repository, 35 of which had never visited before. This translated to 535
page views. There are other risks to be considered, such as being retweeted
by an extreme right-wing academic who has been no-platformed across some
universities in the UK. This happened last week and it wasn't really an
issue, but it COULD be an issue I suppose.

My motivation behind it is personally to get to grips with as many popular
APIs as I can and to make our publications not just available, but
publicised as much as possible. I also want an excuse to make an EPrints
plugin so that I can actually contribute to the community instead of just
taking from it as I have so far!


On Thu, Jan 16, 2020 at 1:17 PM <martin.braendle at uzh.ch> wrote:

> Hi James,
> interesting idea. What is the motivation and what do you expect from
> posting 6000 tweets anually from UoL repo?
> Kind regards,
> Martin
> [image: Inactive hide details for "James Kerwin via Eprints-tech"
> ---16.01.2020 12:58:41---Hi Adam, I don't usually use GitHub, but I'v]"James
> Kerwin via Eprints-tech" ---16.01.2020 12:58:41---Hi Adam, I don't usually
> use GitHub, but I've given myself a refresher /crash course.
> Von: "James Kerwin via Eprints-tech" <eprints-tech at ecs.soton.ac.uk>
> An: adam at adamfield.net
> Kopie: eprints-tech at ecs.soton.ac.uk
> Datum: 16.01.2020 12:58
> Betreff: Re: [EP-tech] User Roles
> Gesendet von: <eprints-tech-bounces at ecs.soton.ac.uk>
> ------------------------------
> Hi Adam,
> I don't usually use GitHub, but I've given myself a refresher /crash
> course.
> *https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjkerwin22%2Fuolrepo_test%2Ftree%2Fmaster%2Fcfg%2Fplugins%2FEPrints%2FPlugin%2FEvent*&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca969b9e092254434d35608d79a9e658d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=fKoLzKlyRhy0J2LDAAKphyBHqEIjbD9YUuSa1oa%2Bq%2BM%3D&amp;reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjkerwin22%2Fuolrepo_test%2Ftree%2Fmaster%2Fcfg%2Fplugins%2FEPrints%2FPlugin%2FEvent&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca969b9e092254434d35608d79a9e658d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=wQO3iuvnaD733pQwODA1RWiz6pdHtAWuwwEPOYvCs%2Bs%3D&amp;reserved=0>
> *https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjkerwin22%2Fuolrepo_test%2Fblob%2Fmaster%2Fcfg%2Fcfg.d%2Ftwitter_v2_2.pl*&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca969b9e092254434d35608d79a9e658d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=3eIVPZY%2FSGH%2BZlwbJrlZZv7XzIoatRzfYrMVwyC5No0%3D&amp;reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjkerwin22%2Fuolrepo_test%2Fblob%2Fmaster%2Fcfg%2Fcfg.d%2Ftwitter_v2_2.pl&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca969b9e092254434d35608d79a9e658d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=8Y8hHVbZ8ZQnm7wL6Or%2F4tWb5wHGJ93lOHYPiWJuUl8%3D&amp;reserved=0>
> I've included a "sub bish" in the TwitterEvent.pm which was to test if
> this file was being reached at all, with the hope that it would add a
> unique/nonsense string to my error log. This didn't work.
> Whatever mistake I've made, it must be incredibly basic. I was under no
> illusion that the plugin would be correct first time (it's almost certainly
> got errors), but I would expect the nonsense text to reach the error log so
> I can at least know that it's trying to run my script.
> Thanks,
> James
> On Thu, Jan 16, 2020 at 8:39 AM <*adam at adamfield.net* <adam at adamfield.net>>
> wrote:
>    Is it in github?  Can you link me to the code?
>    On 16 Jan 2020 08:31, James Kerwin via Eprints-tech <
>    *eprints-tech at ecs.soton.ac.uk* <eprints-tech at ecs.soton.ac.uk>> wrote:
>       Hi All,
>       I rewrote my twitter bot using a different Perl module as it wasn't
>       working how I wanted it to (failed with "special characters").
>       It worked when I rewrote it as a .pl in cfg.d. I then decided to
>       rewrite it as an Event plugin as this seems like the "proper" way to do
>       things. Unfortunately, it doesn't work.
>       I can see that it gets added to the indexer and it subsequently
>       fails.
>       One possible reason it fails is that I don't have any user roles
>       set up for it. For an event plugin, do I need user roles to be set up?
>       I've tried to look at documentation for other plugins, but they
>       also involve a "Screen" plugin which is what I assume the user roles are
>       for. My plugin just uses the status change trigger to compile and send a
>       tweet.
>       Any pointers greatly appreciated.
>       Thanks,
>       James
>    *** Options:
>    http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>    *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca969b9e092254434d35608d79a9e658d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=hn%2FrXniOzihhPRqm3CtXhB%2BqOwGEkDCmSO5J%2BAQMMZQ%3D&amp;reserved=0
>    *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca969b9e092254434d35608d79a9e658d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=kX1oSvFbHTXbU0ySRq23Tj%2FRVo7FXU%2FIi6NX8Fuk0XE%3D&amp;reserved=0
>    *** EPrints developers Forum: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca969b9e092254434d35608d79a9e658d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=fT7KKrQDv4Lz00Gbp4%2FxXXgQIlkWFOdFA6nR6WHJwLg%3D&amp;reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200116/b891b511/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200116/b891b511/attachment-0001.gif