[RQ]surfraw (2.1.4)

Surfraw - Shell Users' Revolutionary Front Rage Against the World Wide Web
http://packages.debian.org/unstable/web/surfraw

tomk wrote:
1. Flag it out of date. Use the existing PKGBUILD to build the new version by simply changing the version number.
2. This forum is used for applications that are not yet in the AUR.
1> Problem is, then it is more harder than simply type one-line command "configure && make && make install".
Just do it yourself what you said, then you will know.
2> alright.
[url=http://aur.archlinux.org/packages/surfraw/surfraw/PKGBUILD]Aur[/url] wrote:
pkgname=surfraw
pkgver=1.0.3
pkgrel=1
pkgdesc="a fast unix command line interface to a variety of popular WWW search engines and other artifacts of power."
url="http://surfraw.sourceforge.net/"
depends=(bash)
source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('02ccda12ac516f2d171912d782bcd6a6')
build()
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc
  #disallow porn results by default
  sed -i "s|defyn SURFRAW_p0rn.*$|defyn SURFRAW_p0rn no|" surfraw.conf
  make DESTDIR=$startdir/pkg install
[url=http://prdownloads.sourceforge.net/surfraw/]AUR, sf.net[/url] wrote: -- Parent Directory --      -      Apr 26, 2006 10:41
surfraw-0.5.5-1.tar.gz     58 kb     Aug 04, 2000 23:58
surfraw-0.5.6.tar.gz     59 kb     Aug 05, 2000 18:51
surfraw-0.5.7.tar.gz     60 kb     Aug 12, 2000 04:51
surfraw-0.5.8-1.tar.gz     61 kb     Aug 24, 2000 11:43
surfraw-1.0.1.tar.gz     61 kb     Aug 25, 2000 06:44
surfraw-1.0.2.tar.gz     63 kb     Sep 26, 2000 13:00
surfraw-1.0.3.tar.gz   64 kb      Jan 12, 2001 18:41
[url=http://ftp.debian.org/debian/pool/main/s/surfraw/]debian[/url] wrote:[DIR] Parent Directory        22-Apr-2006 16:13      - 
[   ] surfraw_1.0.7-1.diff.gz 02-Mar-2002 18:47     5k 
[   ] surfraw_1.0.7-1.dsc     02-Mar-2002 18:47     1k 
[   ] surfraw_1.0.7-1_all.deb 02-Mar-2002 18:47    29k 
[   ] surfraw_1.0.7.orig.t..> 02-Mar-2002 18:47    62k 
[   ] surfraw_2.1.0-1.dsc     20-Apr-2005 17:32     1k 
[   ] surfraw_2.1.0-1.tar.gz  20-Apr-2005 17:32   134k 
[   ] surfraw_2.1.0-1_all.deb 20-Apr-2005 17:32    71k 
[   ] surfraw_2.1.4.dsc       20-Mar-2006 05:32     1k 
[   ] surfraw_2.1.4.tar.gz    20-Mar-2006 05:32   137k 
[   ] surfraw_2.1.4_all.deb   20-Mar-2006 05:32    73k

Similar Messages

  • [SOLVED - workaround] surfraw 2.2.6-1 error: line 439 url : No suc...

    Getting this on two machines, no config file has changed - I can't see anything different in the manual to say why it's suddenly broken.
    I can get round it by adding the -browser option, so it's probably just that the script is not picking up the setting from the conf file. It *might* be to do with libetc.so being used, but the conf file can be found by other app (eg editors) so I'm assuming it can find it.
    Obviously I can change my sr funcs to include the -browser, or I can try and debug the script and see why it's not picking up the setting, but I wondered if maybe someone else had fixed it already?
    Last edited by skanky (2010-08-31 20:20:46)

    I hope this thread isn't too old (it's still 2010) for me to post, but I am having the same issue, and I think it has to do with using libetc. If I copy my surfraw.conf into my home directly (or symlink it), surfraw works fine (for me, the error is on line 449). All my other programs are working fine with libetc, so I wonder why surfraw is having issues.

  • Mc-nbt-edit: Command line editor for Minecraft's NBT files

    Hello everyone! This is a little script I wrote for personal use but after all I decided to share it, after all someone might find it useful.
    So, mc-nbt-edit is a simple python script that edits nbt files using Thomas Woolford's NBT Library. I wrote it so some repetitive actions became faster (using the same command again and again instead of navigating a GUI).
    Some usage examples:
    mc-nbt-edit ~/.minecraft/saves/map/level.dat Data.GameType 1
    Converts the given map to Creative.
    mc-nbt-edit ~/.minecraft/saves/map/level.dat Data.Player.health 20
    Fills up player's health.
    mc-nbt-edit ~/.minecraft/saves/map/level.dat Data.Time 12000
    Set's time to 'sunset'.
    For more values read here.
    Also please check the README file before using.
    GIT Repository
    AUR Package
    Note: Please make backup of your files before using this utility, I take no responsibility whatsoever about anything that goes wrong.
    Note 2: This is one of my first python scripts (the others being simple math problem solvers for school) so please if you have any suggestions, please do tell them.
    Hope you find it useful
    Last edited by sakisds (2011-10-08 17:21:24)

    I used to use aliases, but I like qfi better because adding and changing shortcuts is faster, and I don't have to restart all of my shells afterwards. It also keeps the files in a separate namespace, so, if I want shortcuts to a lot of different files, I don't have to worry about overriding actual commands. Also, if I forget the exact name of the target, I can just use tab-completion, which I couldn't do with aliases, because I would get a huge list of results.
    Speaking of aliases, I have qfi aliased to q and I have "pac" as a target to "/etc/pacman.conf" so I can just type
    $ q pac
    to open up that file. It's only three more characters, and I get the aforementioned benefits. I could also just make it "p", so I could just run:
    $ q p
    By the way, surfraw looks like a pretty nifty project, I'll have to look into it. Thanks!

  • Searching only English Wiki Pages

    Is it possible to search the wiki for only one language? (English in my case.) I mean, is it possible to exclude other languages from the results? I don't see the option in the "Advanced" search. I'm creating a shortcut, so maybe there's a way to specify in the url?

    No, it's not possible to search only English pages at the moment.
    By looking at the source of surfraw it doesn't seem to be able to help you.
    If you want, it should be very easy to program a search tool that gets raw search results through API calls (see https://www.mediawiki.org/wiki/API:Search, https://www.mediawiki.org/wiki/API:Opensearch, https://wiki.archlinux.org/api.php), and then removes the entries with the language suffixes listed in https://wiki.archlinux.org/index.php/He … #Languages.
    Finally, also the implementation of https://wiki.archlinux.org/index.php/He … uffixes.3F would solve this problem.

  • Zsh sudo completion

    I just started using zsh last night, and so I'm not quite sure how a few things work with completion, particularly in combination with sudo.
    'sudo ' followed by a path autocompletes, but 'sudo fire<tab>' doesn't.  If I drop into a root shell with sudo -s, then 'fire<tab>' *does* complete, although I think that has to do with the fact that I'm using sudo, rather than su.
    As a side note, how would I go about defining my prompt differently for root, when I'm not actually using su?

    I used to use aliases, but I like qfi better because adding and changing shortcuts is faster, and I don't have to restart all of my shells afterwards. It also keeps the files in a separate namespace, so, if I want shortcuts to a lot of different files, I don't have to worry about overriding actual commands. Also, if I forget the exact name of the target, I can just use tab-completion, which I couldn't do with aliases, because I would get a huge list of results.
    Speaking of aliases, I have qfi aliased to q and I have "pac" as a target to "/etc/pacman.conf" so I can just type
    $ q pac
    to open up that file. It's only three more characters, and I get the aforementioned benefits. I could also just make it "p", so I could just run:
    $ q p
    By the way, surfraw looks like a pretty nifty project, I'll have to look into it. Thanks!

  • On tight integration with the shell (a pager and a browser)

    I just hacked together a bunch of scripts that implement a pager and browser tightly integrated to the shell.
    Slogan:
    Monolithic programs prevent synergy. Tight integration with the shell promotes synergy, and is closer to the UNIX philosophy.
    (Furthermore, it enables workflows that would otherwise require a mouse. It enhances accessability.)
    Background:
    Some time ago I stumbled upon the nmh and mh mail clients (implementation in mailutils). I was interested by the concept, and surprised that they are not more popular. (One big problem with them is the lack of modern mailbox support, lack of IMAP, and such.)
    Anyway, they allow really tight integration with the shell. Another such application is taskwarrior [pkg].
    Example:
    Using taskwarrior and mh it is very easy to add a task description to an email. In the other direction, one can easily annotate a task with an email.
    I realised git [pkg] is also such an app. To illustrate what I do not want: You do not use the command `git` to enter a monolith, that provides its own shell:
    [user@host ~]$ git
    git> add myfile
    git> commit
    git> push origin master
    git> quit
    [user@host ~]$
    That would feel really stupid, right? Another program that illustrates what I mean is surfraw [pkg] (usually abbreviated to sr).
    Ok, so far for background and illustration. On to my scripts.
    My scripts
    Warning: First of all, I want to stress that I am a bad programmer, my scripts are very fragile, and they provide a crude user experience. This is really just a proof of concept.
    Consider the following scenario.
    Scenario:
    Suppose you are logged in to some server via ssh. No mouse, no X, no screen or tmux. You are writing an email, and want to quote some text from Wikipedia. What do you do?
    I provide some scripts that give a crude browser and page tightly integrated with the shell. The pager p is akin to less (or more) but just dumps its output in the terminal. You use pd (page down) pu (page up) pj and pk (scroll 3 lines down/up) to navigate throught the output.
    The browser b just runs a URL through elinks -dump and saves the output in a cache file. Typically, one would pipe the output of b through p. Further bl n follows link number n. Further bcur just prints the output of the cache file to the terminal (for example to pipe it through p if one had not done that yet).
    The bundles of scripts are available at https://github.com/jcommelin/p and https://github.com/jcommelin/b .
    Back to the scenario. With my scripts I can now do:
    [user@host ~]$ sr wikipedia linux | p # sr the linux wiki page, pipe through p
    [user@host ~]$ pd # page down
    [user@host ~]$ pd
    [user@host ~]$ pj 10 # scroll 10 lines down
    [user@host ~]$ pcur | tail -12 >> email.txt # select last 12 lines of current paging, append to email
    (I obviously did not print the output of the commands, as they would fill the entire screen.)
    Ok, this post is long enough already. I would appreciate any feedback.
    Other apps that take the `tight integration' approach.
    A niche of apps still lacking such a program.
    Feedback on my scripts (I don't mind converting stuff to C. It should become pretty robust in the end.)
    FYI: I already plan on adding browsing history to b.

    Please see your other post for an answer.  Thank you.
    Opening PDFs on iPad

Maybe you are looking for