You are not logged in.

#1 2007-11-17 15:01:52

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Combined repo and AUR websearch

Hi,

To scratch my personal little itch (since I often first check the repo search, and then the AUR website) I have programmed a PHP script that webscrapes both the repo and AUR. It's not an amazing piece of technology and programmes like yaourt have been doing this for a long time.

Nevertheless, try it out on:

http://www.stgabrielshalls.org.uk/lenni/

Any feedback, feature request or similiar, please post in this thread.

Offline

#2 2007-11-17 16:10:37

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: Combined repo and AUR websearch

Very nice wink
Can you add Unsupported or Community label for packages from AUR ?

Offline

#3 2007-11-17 17:49:19

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: Combined repo and AUR websearch

Cool 8)


Haven't been here in a while. Still rocking Arch. smile

Offline

#4 2007-11-17 17:52:42

mivo
Member
From: Germany
Registered: 2007-11-13
Posts: 34

Re: Combined repo and AUR websearch

Thanks! I had been looking for something like this. Very useful. smile

Offline

#5 2007-11-17 17:57:49

gummibaerchen
Member
Registered: 2007-07-20
Posts: 109

Re: Combined repo and AUR websearch

You made it (into my Epiphany's search bookmarks)!

Really much better than first search al.org and then the AUR smile

Thanks!!

(Maybe something like this could be provided by Arch itself? That would make things much faster I think)

Offline

#6 2007-11-17 19:37:13

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: Combined repo and AUR websearch

If I search for 'sonata', as a test, it only shows sonata-svn from unsupported and not sonata from extra.


I am a gated community.

Offline

#7 2007-11-17 20:16:06

MrWeatherbee
Member
Registered: 2007-08-01
Posts: 277

Re: Combined repo and AUR websearch

stonecrest wrote:

If I search for 'sonata', as a test, it only shows sonata-svn from unsupported and not sonata from extra.

Yea. I like the idea, the design, the interface and the implementation for the most part , but perhaps a slight tweak in the search algorithm is in order.

As another example of erroneous results: if you search 'prozilla', you get zero hits; if you search for 'download', 'prozilla' appears in the results.

I've bookmarked it anyway. Thanks. smile

Offline

#8 2007-11-17 20:25:10

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: Combined repo and AUR websearch

I  just realised, if the repo search returns only one hit you'll get send straight to the package page, rather than the   results page, which kinda screws up the webscraping loop. I'll fix that and let you know.

Thanks for the comments.

Offline

#9 2007-11-17 21:00:21

miggols99
Member
Registered: 2007-06-10
Posts: 424

Re: Combined repo and AUR websearch

I really like that. smile Good work.

Offline

#10 2007-11-22 20:06:38

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: Combined repo and AUR websearch

If I search for 'sonata', as a test, it only shows sonata-svn from unsupported and not sonata from extra.

I have fixed this issue now. Any feedback is very welcome.

Offline

#11 2007-11-22 20:32:26

bluePoet
Member
From: Düsseldorf, Germany
Registered: 2006-01-09
Posts: 38
Website

Re: Combined repo and AUR websearch

lenni wrote:

If I search for 'sonata', as a test, it only shows sonata-svn from unsupported and not sonata from extra.

I have fixed this issue now. Any feedback is very welcome.

Their both tagged [AUR] now.

Offline

#12 2007-11-22 20:37:26

MrWeatherbee
Member
Registered: 2007-08-01
Posts: 277

Re: Combined repo and AUR websearch

lenni wrote:

If I search for 'sonata', as a test, it only shows sonata-svn from unsupported and not sonata from extra.

I have fixed this issue now. Any feedback is very welcome.

I think you may have fixed it too much. Seems it wants to find 'sonata' when it shouldn't. For example, if I search 'notinrepo', I get a result:

 Results for "notinrepo"
Displaying hits 1 - 1

[AUR] Search Criteria
Keywords

'Search' is a hyperlink to http://archlinux.org/packages/search/?r … l&q=sonata

Another example: search for 'hello' yields this:

 Results for "hello"
Displaying hits 1 - 3

[AUR] Search Criteria
Keywords

[AUR] quarry 0.2.0-1
Quarry is a multi-purpose GUI for several board games, at present Go, Amazons and Othello.

[AUR] othello 1.9.4-1
Reversi game implementation with very strong AI

Again, the 'Search Criteria' result appears and is linked to Sonata.

The 'Search Criteria' hit comes up quite a bit and is always linked to Sonata, but I haven't come up with a consistent pattern. Maybe it's a feature I don't understand. smile

On a positive note, searching for 'prozilla' now works.

Offline

#13 2007-11-22 23:26:18

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: Combined repo and AUR websearch

I'm looking into this. The implementation was obviously not as good as I thought.

Last edited by lenni (2007-11-23 20:56:00)

Offline

#14 2007-11-22 23:36:02

smurnjiff
Member
Registered: 2007-06-25
Posts: 211

Re: Combined repo and AUR websearch

Have you tried "psearch"?

Offline

#15 2007-11-23 00:12:05

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Combined repo and AUR websearch

fyi. for the aur, there is a json interface that is hopefully going to be rolled out soon.
I am considering a similar api for the main site.

In the meantime, you can find some info about it here: http://archlinux.org/pipermail/tur-user … 06132.html

and some examples of usage here: http://archlinux.org/pipermail/tur-user … 06139.html


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#16 2007-11-23 03:42:57

MrWeatherbee
Member
Registered: 2007-08-01
Posts: 277

Re: Combined repo and AUR websearch

lenni wrote:

I'm looking into this. The implementation was obviously not so good as I thought.

The issue I described above as well as the one described by bluePoet are now fixed.

Offline

#17 2007-11-23 10:55:04

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: Combined repo and AUR websearch

Yeah, I fixed that. There is only one issue where the repo search returns only one hit, as described by smurnjiff, but I'll sort that out tonight.

Last edited by lenni (2007-11-23 21:26:47)

Offline

#18 2007-11-23 21:26:55

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: Combined repo and AUR websearch

I have fixed (I think) the remaining issues and added an opensearch plugin. Thanks all for your comments.

Offline

#19 2007-11-24 04:33:35

MrWeatherbee
Member
Registered: 2007-08-01
Posts: 277

Re: Combined repo and AUR websearch

lenni wrote:

I have fixed (I think) the remaining issues and added an opensearch plugin. Thanks all for your comments.

You're welcome. Thank you for your efforts as well.

By the way, if you are interested in another challenge and one that I believe fits neatly in with what you have already done, maybe you could add code (and a second input box) for searching through package file-listings. A recent discussion took place here regarding the subject:

http://bbs.archlinux.org/viewtopic.php?id=39468

The Google search string method works well enough in most cases:

archlinux.org inurl:packages/files name_of_file

but it does fail to produce results more than one would like in order to place full confidence in it.

Just a thought. Anyway, thanks again.

Offline

#20 2007-12-25 23:59:48

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: Combined repo and AUR websearch

I finally got round to adding the community/unsupported label to the AUR results.

Enjoy!

Offline

#21 2007-12-28 00:14:39

faemir
Member
From: UK
Registered: 2007-11-09
Posts: 18

Re: Combined repo and AUR websearch

Would it be possible to use it as a web shortcut in konqueror? How would I go about doing this?

Offline

#22 2007-12-28 09:57:21

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: Combined repo and AUR websearch

I'm not sure about Konquerer, but Firefox supports opensearch plugins (the search box next to the location bar). I have added one to the website and it's advertised to the browser.

I googled around and someone said Konquerer doesn't support opensearch plugins (please correct me if I'm wrong). I don't use Konquerer and don't know what a web shortcut is but I assume you will need to use the following url:

http://www.stgabrielshalls.org.uk/lenni … yourpacket

Just replace yourpacket with what you would like to search for.

Offline

#23 2009-01-20 18:05:22

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Combined repo and AUR websearch

is this page still working for others? For me it is not (conkeror, MS Internet Explorer 6, pleas do not hit me:)) because it does not show up the package I searched for but many others.

Offline

#24 2009-01-20 19:58:34

b9anders
Member
Registered: 2007-11-07
Posts: 691

Re: Combined repo and AUR websearch

Stefan Husmann wrote:

is this page still working for others? For me it is not (conkeror, MS Internet Explorer 6, pleas do not hit me:)) because it does not show up the package I searched for but many others.

I won't, but it has made me think about coding something that will allow to hit people across the web.:mad::P

Offline

Board footer

Powered by FluxBB