PageRenderTime 46ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/README

https://bitbucket.org/kisom/surfraw-devel
#! | 376 lines | 314 code | 62 blank | 0 comment | 0 complexity | c01637451be2a2b21aefe2da96fefdc3 MD5 | raw file
  1. Surfraw - Shell Users' Revolutionary Front Rage Against the Web
  2. Home Page: http://surfraw.alioth.debian.org
  3. ______ _ _ ______ _______ ______ _______ _ _ _
  4. / _____)(_) (_)(_____ \ (_______)(_____ \ (_______)(_)(_)(_)
  5. ( (____ _ _ _____) ) _____ _____) ) _______ _ _ _
  6. \____ \ | | | || __ / | ___) | __ / | ___ || || || |
  7. _____) )| |___| || | \ \ | | | | \ \ | | | || || || |
  8. (______/ \_____/ |_| |_||_| |_| |_||_| |_| \_____/
  9. Surfraw - Shell Users' Revolutionary Front Rage Against the Web
  10. New: http://surfraw.alioth.debian.org
  11. Old: http://surfraw.sourceforge.net/
  12. Oh Baybe
  13. I need some
  14. Deep Linking
  15. Let us go
  16. Surfin' in the raw!
  17. Surfraw provides a fast unix command line interface to a variety of
  18. popular WWW search engines and other artifacts of power. It reclaims
  19. google, altavista, babelfish, dejanews, freshmeat, research index,
  20. slashdot and many others from the false-prophet, pox-infested heathen
  21. lands of html-forms, placing these wonders where they belong, deep in
  22. unix heartland, as god loving extensions to the shell.
  23. Surfraw abstracts the browser away from input. Doing so lets it get on
  24. with what it's good at. Browsing. Interpretation of linguistic forms
  25. is handed back to the shell, which is what it, and human beings are
  26. good at. Combined with netscape-remote or incremental text browsers,
  27. such as links (http://artax.karlin.mff.cuni.cz/~mikulas/links/), w3m
  28. (http://www.w3m.org/), and screen(1) a Surfraw liberateur is capable
  29. of navigating speeds that leave GUI tainted idolaters agape with fear
  30. and wonder.
  31. Surfraw consists of a collection of elvi, each of which knows how
  32. to search a specific web site.
  33. To see the list of elvi type:
  34. surfraw -elvi
  35. Note that sr is an alias for surfraw, so that could equally be
  36. sr -elvi
  37. To search using an elvis use:
  38. sr elviname [options] search terms..
  39. For example, to search google for information on Debian ports,
  40. using the "I'm feeling lucky" option:
  41. sr google -l debian ports
  42. Note that putting quotes round arguments works now, so you can do,
  43. for example:
  44. sr google foo "bar baz" bam
  45. and the quoting is passed on to the search engine.
  46. ADDING THE ELVI TO YOUR PATH
  47. If you are a regular user of surfraw, you will probably get sick
  48. of typing sr or surfraw each time. You can regain the old
  49. behaviour of running the elvi directly by adding the elvi
  50. directory (usually /usr/lib/surfraw or /usr/local/lib/surfraw/) to
  51. your path, either manually or using surfraw-update-path(1).
  52. CONFIG FILES
  53. Surfraw implements the XDG basedir spec
  54. (http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html)
  55. Essentially this means global config will be in /etc/xdg/surfraw/
  56. and local config will be in $HOME/.config/surfraw/.
  57. This can be modified by setting $XDG_CONFIG_DIRS and $XDG_CONFIG_HOME,
  58. see the spec for more details.
  59. If your system has a different sysconfdir set during configure, that
  60. will be used instead of /etc (for instance, /usr/local/etc).
  61. In the documentation below, only the default paths will be referred to.
  62. LOCAL ELVI
  63. Surfraw can use your own private elvi, store them in
  64. $HOME/.config/surfraw/elvi/.
  65. Local elvi will be listed separately at the end of
  66. 'surfraw -elvi'.
  67. Use existing elvi (e.g. google) as a template. If you think your
  68. elvi may be useful to others, consider submitting them to
  69. surfraw-devel@lists.alioth.debian.org.
  70. BOOKMARKS
  71. Surfraw now supports bookmarks. To add a bookmark, add it to to the
  72. global bookmark list in /etc/xdg/surfraw/bookmarks or to your
  73. personal bookmark list in $HOME/.config/surfraw/bookmarks
  74. The format of the bookmarks file is simple, each bookmark is on a
  75. separate line, with the bookmark and URL separated by whitespace,
  76. eg:
  77. ntk http://www.ntk.net/
  78. To invoke a bookmark, use "surfraw bookmark" or "sr bookmark",
  79. and if an elvis of that name doesn't exist, it searches for a
  80. bookmark of that name instead.
  81. There are some example bookmarks in /etc/xdg/surfraw/bookmarks
  82. INSTALLATION
  83. Surfraw is installed with the standard ./configure; make; make install
  84. procedure. See INSTALL for more details. If you obtained surfraw
  85. direct from the git repository rather than a release tarball, run
  86. ./prebuild to generate the autotools build files *before* running
  87. ./configure.
  88. Note that the opensearch elvis depends on the perl libraries
  89. WWW::OpenSearch, HTML::Parser and LWP (libwww-perl). If you don't
  90. want to install opensearch, use ./configure --disable-opensearch.
  91. Surfraw supports the following options to ./configure:
  92. --with-text-browser=BROWSER Use BROWSER as text-mode browser
  93. --with-graphical-browser=BROWSER Use BROWSER as graphical-mode browser
  94. --with-elvidir=DIR Use DIR as location for storing elvi
  95. --disable-opensearch Disable OpenSearch support
  96. --disable-sr Disable installing sr alias
  97. By default, the text and graphical browsers are detected from a
  98. list of installed browsers at configure time. elvidir defaults
  99. to $(libdir)/surfraw (probably /usr/local/lib/surfraw).
  100. EXAMPLES
  101. $ surfraw google -results=100 RMS, GNU, which is sinner, which is sin?
  102. $ sr wikipedia surfraw
  103. $ sr austlii -method=phrase dog like
  104. $ /usr/lib/surfraw/rhyme -method=perfect Julian
  105. OPTIONS
  106. Global options are common to all Surfraw elvi (clients). You can
  107. get a list of the currently installed elvi by just typing `surfraw -elvi'.
  108. For example:
  109. $ surfraw -elvi
  110. GLOBAL ELVI:
  111. W -- Activate Surfraw defined web-browser
  112. acronym -- Look for acronyms definitions (www.acronymfinder.com)
  113. ads -- Search SAO/NASA Astrophysics Data System
  114. alioth -- Search Alioth (alioth.debian.org)
  115. amazon -- Search the amazon.com bookstore
  116. archpkg -- Search Arch Linux Packages (www.archlinux.org/packages/)
  117. archwiki -- Search the Arch Linux Wiki
  118. arxiv -- Search arXiv E-Print Archive for articles
  119. ask -- Question the web using Ask Jeeves (www.ask.com)
  120. aur -- Search aur.archlinux.org for PKGBUILDs
  121. austlii -- Search Australian Law docs (www.austlii.edu.au)
  122. bbcnews -- Search BBC News (news.bbc.co.uk)
  123. bing -- Search the web using Microsoft's Bing (www.bing.com)
  124. bookfinder -- Search for books using www.bookfinder.com
  125. bugmenot -- Bypass compulsory web registration with bugmenot.com
  126. bugzilla -- Search for bugs on Bugzilla bugtrackers
  127. cablesearch -- search openports for OpenBSD packages
  128. cia -- Search CIA documents at www.cia.gov
  129. cisco -- Search Cisco documentation (www.cisco.com)
  130. cite -- Search computer science papers (citeseerx.ist.psu.edu)
  131. cliki -- Search the common lisp wiki
  132. cnn -- Search on CNN (cnn.com)
  133. codesearch -- Search source code using Google Code Search (www.google.fr/codesearch)
  134. comlaw -- Search Australian Law using Comlaw (www.comlaw.gov.au)
  135. ctan -- Search the Comprehensive TeX Archive Network (ctan.org)
  136. currency -- Convert currencies with the Universal Currency Converter (www.xe.net/ucc)
  137. cve -- Search for CAN assignments in CVE
  138. debbugs -- Search the debian BTS (bugs.debian.org)
  139. debcontents -- Search contents of debian/ubuntu packages (packages.debian.org/packages.ubuntu.com)
  140. deblists -- Search debian mailing lists (lists.debian.org/search.html)
  141. deblogs -- Show changelogs for a package in Debian main (changelogs.debian.net)
  142. debpackages -- Search debian/ubuntu packages (packages.debian.org/packages.ubuntu.com)
  143. debpkghome -- Visit the home page for a Debian package
  144. debpts -- Search the Debian Package Tracking System (packages.qa.debian.org)
  145. debsec -- Search the Debian Security Tracker for CVE ids or package names
  146. debvcsbrowse -- Browse the VCS repository for a Debian package
  147. debwiki -- Search the Debian Wikis (wiki.debian.org & women.debian.org/wiki)
  148. deja -- Search usenet using Google Groups (groups.google.com)
  149. deli -- Search Delicious bookmarks
  150. discogs -- Search the Discogs database of music information (www.discogs.com)
  151. dmoz -- Search the Open Directory Project web directory (dmoz.org)
  152. duckduckgo -- Securely search the web using duckduckgo (www.duckduckgo.com)
  153. ebay -- Search the Ebay auction site
  154. etym -- Look up word origins at www.etymonline.com
  155. excite -- Search on Excite (www.excite.com)
  156. f5 -- Search F5 related information (www.f5.com)
  157. finkpkg -- Search Fink packages (pdb.finkproject.org)
  158. foldoc -- The Free On-Line Dictionary Of Computing (foldoc.org)
  159. freebsd -- Search FreeBSD related information (www.freebsd.org)
  160. freedb -- Search for cd track listings in FreeDB (www.freedb.org)
  161. freshmeat -- Search Freshmeat (www.freshmeat.net)
  162. fsfdir -- Search the FSF/UNESCO Free Software Directory (directory.fsf.org)
  163. gcache -- Search the web using Google cache (www.google.com)
  164. genbugs -- Search the Gentoo bug tracker (bugs.gentoo.org)
  165. genportage -- Search gentoo-portage.com for packages
  166. github -- Search github for code (www.github.com)
  167. google -- Search the web using Google (www.google.com)
  168. gutenberg -- Search for books on Project Gutenberg (gutenberg.org)
  169. happypenguin -- Search the Linux Game Tome (www.happypenguin.org)
  170. imdb -- Search the Internet Movie Database (www.imdb.com)
  171. ixquick -- Search the web using ixquick [HTTPS] (www.ixquick.com)
  172. jamendo -- Search Jamendo: free music with Creative Commons licenses (www.jamendo.com)
  173. javasun -- Search Java API docs (java.sun.com)
  174. l1sp -- Search lisp documentation
  175. lastfm -- Search last.fm
  176. leodict -- Search Leo's German <-> English dictionary (dict.leo.org)
  177. lsm -- Search the Linux Software Map
  178. macports -- Search macports packages (macports.org)
  179. mathworld -- Search Wolfram MathWorld
  180. mininova -- Search the mininova bittorent source.
  181. musicbrainz -- Search MusicBrainz (musicbrainz.org)
  182. netbsd -- Search NetBSD related information (www.netbsd.org)
  183. ntrs -- Search the NASA Technical Report Server
  184. openbsd -- Search OpenBSD related information (www.openbsd.org)
  185. openports -- search openports for OpenBSD packages
  186. opensearch -- Search an OpenSearch-enabled website
  187. pasearch -- Search the unofficial Penny Arcade archives (pipefour.org/pa)
  188. pgpkeys -- Search the PGP key database
  189. pin -- Search Pinboard bookmarks (http://pinboard.in)
  190. piratebay -- Search thepiratebay.org for torrents
  191. priberam -- Look up word in Priberam online dictionary (www.priberam.pt/dlpo)
  192. pubmed -- Search medical/molbio databases (www.ncbi.nlm.nih.gov)
  193. rae -- Busca en el diccionario de la Real Academia de la Lengua EspaĂąola (Spanish Dictionary)
  194. rfc -- Search RFCs (internet standards documents)
  195. rhyme -- Search for rhymes et al using Lycos Rhyme (rhyme.lycos.com)
  196. rpmsearch -- Search for RPMs in various distros
  197. scholar -- Search Google Scholar (scholar.google.com)
  198. scicom -- Search Scientific Commons
  199. scirus -- Search for science using Scirus (scirus.com)
  200. scitopia -- Search for science with scitopia.org
  201. scpan -- Search the Comprehensive Perl Archive Network (search.cpan.org)
  202. scroogle -- Search Google anonymously via Scroogle (www.scroogle.org)
  203. slashdot -- Search stories on Slashdot (www.slashdot.org)
  204. slinuxdoc -- Search entries in LDP (www.linuxdoc.org)
  205. sourceforge -- Search SourceForge (www.sourceforge.net)
  206. springer -- Search Springer for Books and Articles
  207. stack -- Search Stack Overflow
  208. stockquote -- Get a single stock quote (multiple providers)
  209. sunonesearch -- Search Sun One Search (onesearch.sun.com)
  210. thesaurus -- Look up word in Merriam-Webster's Thesaurus (www.m-w.com)
  211. translate -- Translate human languages (various providers)
  212. urban -- Search urbandictionary.com for a definition
  213. w3css -- Validate a CSS URL with the w3c CSS validator (jigsaw.w3.org/css-validator)
  214. w3html -- Validate a web page URL with the w3c validator (validator.w3.org)
  215. w3link -- Check web page links with the w3c linkchecker (validator.w3.org/checklink)
  216. w3rdf -- Validate a RDF URL with the w3c RDF validator (validator.w3.org)
  217. wayback -- Search The Internet Archive's Wayback Machine for a URL (archive.org)
  218. webster -- Look up word in Merriam-Webster's Dictionary (www.m-w.com)
  219. wetandwild -- Real time weather information (many sources)
  220. wikipedia -- Search the free encyclopedia wikipedia
  221. woffle -- Search the web using Woffle (localhost:8080)
  222. wolfram -- Ask questions of the computational knowledge engine
  223. worldwidescience -- Search for science with www.worldwidescience.org
  224. yahoo -- Search Yahoo categories (www.yahoo.com)
  225. yandex -- Search the web using Yandex (yandex.ru)
  226. youtube -- Search YouTube (www.youtube.com)
  227. yubnub -- Use the social command-line for the web (yubnub.org)
  228. All elvi have useful low calorie help, for example:
  229. Usage: rhyme [options] [search words]...
  230. Description:
  231. Surfraw search for rhymes and other word correlations using
  232. Lycos Rhyme (rhyme.lycos.com)
  233. Example:
  234. $ rhyme Julian
  235. $ rhyme -method=rel surfer
  236. Results:
  237. Hurclean St. Julien.
  238. surfboarder, bather, natator, swimmer
  239. Local options:
  240. -method= Type of word correlation to search for
  241. prefect | Perfect rhyme
  242. syn | Synonyms
  243. hom | Homophones
  244. cons | Consonsant rhymes only
  245. rel | Semantically related words
  246. sub | Phrases
  247. spell | Similar spellings
  248. pic | Pictures
  249. shake | Match with Shakespeare archives
  250. def Find wordnet definition
  251. Default: perfect
  252. Environment: SURFRAW_rhyme_method
  253. Global options:
  254. -browser=EXECUTABLE Set browser
  255. Default: sensible-browser
  256. -elvi List Surfraw mechanisms for conquering evil
  257. -escape-url-args=yes|no Apply url escaping to arguments
  258. Default: yes
  259. Environment: SURFRAW_escape_url_args
  260. -g | -graphical Get some windowed sin
  261. Default: yes
  262. Environment: SURFRAW_graphical
  263. -help What you're reading now, dude
  264. -lh | -local-help Just show elvi-specific help, not the global options
  265. -p | -print Just print search URL, don't pass to browser
  266. -o | -o=FILE Fetch URL and dump to stdout or FILE.
  267. -new[=yes|no] Start in a new window
  268. Default: no
  269. Environment: SURFRAW_new_window
  270. -t | -text Back to the yellow brick road
  271. -q | -quote Quote arguments with " characters
  272. Default: no
  273. Environment: SURFRAW_quote_args
  274. -version Display Surfraw version (2.2.7)
  275. -- End of options
  276. Copyright:
  277. Copyright (c) 2003-2010 The Surfraw-Devel Team
  278. <surfraw-devel@lists.alioth.debian.org>
  279. Copyright (c) 2000-2001 Julian Assange <proff@iq.org>
  280. Copyright (c) 2001 Australian Institute for Collaborative Research
  281. Copyright (c) 2000 Melbourne Institute for Advanced Study
  282. If you just want to see the elvi-specific help, use
  283. elvi -lh or -local-help.
  284. The system wide configuration file can usually be found in
  285. /etc/xdg/surfraw/conf (but see 'Config files' above). This can be
  286. overridden by setting the environment variable SURFRAW_global_conf.
  287. Each user can also specify their own overrides, usually in
  288. $HOME/.config/surfraw/conf (again, see 'Config files' above). This
  289. can be overridden by setting SURFRAW_conf, either in the environment
  290. or the global config file.
  291. e.g
  292. SURFRAW_graphical_remote=yes
  293. SURFRAW_graphical_browser=mozilla
  294. SURFRAW_text_browser=w3m
  295. SURFRAW_pgpkeys_sigs=on
  296. INTEGRATION
  297. There is a browser plugin for Pentadactyl (a vimperator fork) at
  298. http://code.google.com/p/dactyl/issues/detail?id=320
  299. For details, see:
  300. http://lists.alioth.debian.org/pipermail/surfraw-devel/2011-April/000916.html
  301. Code to integrate with uzbl is in
  302. examples/uzbl_load_url_from_surfraw
  303. RADICALIZATION
  304. Read HACKING. Surfrawize the soul of your favourite internet wonder.
  305. Join the Shell Users' Revolutionary Front Against the WWW by
  306. submitting code. Reclaim heathen lands. Bear witness to the
  307. truth. Its love will set you free.
  308. Join us on surfraw-devel@lists.alioth.debian.org
  309. _________________________________________________________________
  310. README originally by Julian Assange
  311. Updated by Ian Beckwith
  312. _________________________________________________________________
  313. See NEWS, and ChangeLog for a summary of changes.
  314. _________________________________________________________________