You are not logged in.

#1 2013-05-26 18:57:58

mortbauer
Member
Registered: 2012-08-25
Posts: 12

aur-comment-fetch

Hey I wrote a very simple script to download the comments for an AUR package, since this is quite useful if some package doesn't build as expected. I recently switched from yaourt to cower and I missed this feature from yaourt so I wrote a crude python script wich does exactly that and nothing more. Maybe somebody finds it useful too, or if some better tool already exists I would be happy if somebody could give me a hint, google was quite useless for this search ("aur helper fetch comment"  yields all aur helpers since everywhere is a comment wink

Here is the link to the script: https://github.com/mortbauer/aur-comment-fetcher.git

Cheers

Offline

#2 2013-05-26 20:51:23

Spyhawk
Member
Registered: 2006-07-07
Posts: 402

Re: aur-comment-fetch

Seems you deleted your script from the git repo when you renamed it tongue

I like the idea, since I'm actually missing a good tool like yours. Some user told me that lynk can do something similar too, but I like the python way (so I can use it with aurtomatic).

Is there a way to retrieve the n last comments (ie, "aur-comment-fetch 5 package" to retrieve the last 5 comments?). And making it available in the AUR would be very useful too.

Last edited by Spyhawk (2013-05-26 20:51:56)

Offline

#3 2013-05-26 21:21:54

mortbauer
Member
Registered: 2012-08-25
Posts: 12

Re: aur-comment-fetch

Thanks for telling me, stupid me really didn't notice it, but you see that it was really just a quick hack, the script just consists of a few lines. Actually the requirements are:

python-requests
python-termcolor
python-beautifulsoup4

Offline

#4 2013-05-26 21:27:10

mortbauer
Member
Registered: 2012-08-25
Posts: 12

Re: aur-comment-fetch

Well for now there isn't any commandline parsing, could be added very quickly  with argparse, then it would be no problem to just give the last 5 or whatever comments.

Offline

#5 2013-05-26 23:05:19

mortbauer
Member
Registered: 2012-08-25
Posts: 12

Re: aur-comment-fetch

I should have studied, but this was more fun, so I added some features. It is now possible to specify how many comments one wants to see, 5 per default. It will also query aur if the specified package name isn't exactly the same, uses python3-aur for this, therefore python3-aur is required as well, if more people are interested in this script I will of course add it to the aur as well wink

Offline

#6 2013-05-27 04:39:35

Spyhawk
Member
Registered: 2006-07-07
Posts: 402

Re: aur-comment-fetch

Thanks for the quick feature addition!

if more people are interested in this script I will of course add it to the aur as well wink

Yes please! This package is totally worth an AUR PKGBUILD wink

Offline

#7 2013-05-29 16:20:18

mortbauer
Member
Registered: 2012-08-25
Posts: 12

Re: aur-comment-fetch

Hey Spyhawk, created now a PKGBUILD. see here: https://aur.archlinux.org/packages/aur- … tcher-git/

Offline

#8 2013-05-29 16:55:17

Spyhawk
Member
Registered: 2006-07-07
Posts: 402

Re: aur-comment-fetch

Thanks a lot mortbauer smile

Offline

Board footer

Powered by FluxBB