You are not logged in.
Pages: 1
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
Very nice
Can you add Unsupported or Community label for packages from AUR ?
Offline
Cool 8)
Haven't been here in a while. Still rocking Arch.
Offline
Thanks! I had been looking for something like this. Very useful.
Offline
You made it (into my Epiphany's search bookmarks)!
Really much better than first search al.org and then the AUR
Thanks!!
(Maybe something like this could be provided by Arch itself? That would make things much faster I think)
Offline
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
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.
Offline
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
I really like that. Good work.
Offline
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
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
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.
On a positive note, searching for 'prozilla' now works.
Offline
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
Have you tried "psearch"?
Offline
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
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
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
I have fixed (I think) the remaining issues and added an opensearch plugin. Thanks all for your comments.
Offline
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
I finally got round to adding the community/unsupported label to the AUR results.
Enjoy!
Offline
Would it be possible to use it as a web shortcut in konqueror? How would I go about doing this?
Offline
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
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
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
Pages: 1