Package Details: elinks-git 0.13.1481.rf86be659-2

Git Clone URL: https://aur.archlinux.org/elinks-git.git (read-only, click to copy)
Package Base: elinks-git
Description: An advanced and well-established feature-rich text mode web browser. Git version.
Upstream URL: http://elinks.or.cz
Keywords: browser devel textmode web
Licenses: GPL
Conflicts: elinks
Provides: elinks
Submitter: ferreum
Maintainer: ferreum
Last Packager: ferreum
Votes: 4
Popularity: 0.008951
First Submitted: 2017-01-18 20:19
Last Updated: 2017-10-07 16:26

Required by (16)

Sources (2)

Latest Comments

1 2 Next › Last »

m040601 commented on 2020-01-18 03:34

Some more info I found:

  • seems that most distros do not compile elinks with python support.
  • Elinks, as of now, can only by compiled with python2.

And a modified PKGBUILD to compile elinks with python features (along with perl and spidermonkey features).

https://github.com/hellricer/soupmonkey/issues/8

m040601 commented on 2020-01-17 10:26

Maybe this is worth checking out:

This package is pulling from repo.or.cz right ? source=("git+http://repo.or.cz/elinks.git"

I was just checking that repo.or.cz "official" elinks repo and it seems the last commits were in 2017, a lot by a "Witold Filipczyk"

For some months now, I've watched this repo on github, rkd77/felinks: Fork of elinks https://github.com/rkd77/felinks

It's called " fork of elinks" but I'm not sure what it really is. I'm not sure who this rkd77 but this github repo log gets updated very frequently and the name ""Witold Filipczyk" also appears in the log. Could it be some semi-official migration of elinks to github ? There a 0.13 realease in late 2019. That repo.or.cz domain is really odd.

Anyway they also seem to be dealing with python issues Please migrate python scripts to Python3 https://github.com/rkd77/felinks/issues/38

ferreum commented on 2019-12-31 00:44

@m040601 Sadly I wasn't able to make python work. It also seems to only support python2, which is not supported any more by 2020. I was able to make the build script run with python3 by changing two python calls, but it doesn't actually compile.

Also, with python2 (PYTHON=/usr/bin/python2 ./configure --with-python), configure printed this message for me:


The Python support is incomplete and not so well integrated to ELinks yet. That means, e.g., that you have no Python console and there might not be all the necessary hooks. Also, the Python interface is not too well tested (success stories heartily welcomed!).


This additionally worries me about the safety of this feature, which is also the reason I want ECMA/JS to be disabled here.

Anyways, if I it does compile, but when I run elinks I only get this:

Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] ImportError: No module named site

Which yet again gives me the impression that this is not a stable feature.

In conclusion this feature sadly seems to be not well supported, and in addition to the apparently terrible state of the code of elinks (judging by the excessive amount of warnings during compilation) I would rather keep this experimental feature disabled.

m040601 commented on 2019-12-24 07:50

@LeoLambda

(...) Is it desirable to enable ECMAScript/JavaScript support in this package, or should I publish a version with ECMAScript support seperately (as elinks-js-git)? (...)

I would vote NO. That is, there is no need to include javascript support in this package. Another one, elinks-js-git could be provided.

I never understood, why some people miss features of modern web pages (like javascript) on cli browsers. If you absolutely need javascript, dont use a cli browser, use a normal one. With the monstruosity that is javascript on most modern web pages, even if a cli browser supports some of it, it would never be a perfect support. There would always be this and that site that need javascript and fail on elinks. And a lot of maintenance work.

Heavy, and daily users of cli browsers, use them exactly for this reason, simplicity, and the possibilities of scripting, piping and integrating with other tools.

m040601 commented on 2019-12-24 07:45

would it be possible to add python support to this AUR package ? That is, make it so that the compiled elinks from source supports not only Lua scripting but also Python scripts (so called Elinks hooks,py)

The official Archlinux package, also only provides Lua support, so no luck there: ELinks 0.13.GIT 25c2850b597ee9a89bda8920e7f3d65ac3ac7e01-dirty Built on Jan 6 2019 18:10:15 Features: Standard, IPv6, gzip, bzip2, UTF-8, Periodic Saving, Viewer (Search History, Timer, Marks), Cascading Style Sheets, Protocol (Authentication, File, CGI, FTP, HTTP, URI rewrite, User protocols), SSL (OpenSSL), MIME (Option system, Mailcap, Mimetypes files), LED indicators, Bookmarks, Cookies, Form History, Global History, Scripting (Lua), Goto URL History

Why ? Hooks in Elinks are a very usefull feature, allowing it to manipulate the rendered buffer and much much more. One can use many different languages to write these scripts. Lua is supported by default. Other, more popular scripting languages Python, Ruby, Perl etc are also supported. They are a very old feature of elinks. If you dont "get" what this elinks "hooks" feature is and its power, google it first. Think of it as GreaseMonkey for elinks.

Automation, Readability are just powerfull and under appreciated examples of what you can do. Most links are quite old. But now and then one finds more ideas and updated to recent and popular websites. From all the scripting languages, Python is the more accessible one, and the one one finds the most work done related to elinks.

Examples: ELinks with BeautifulSoup | ~hellricer/ https://hellricer.github.io/2019/05/29/elinks-with-beautifulsoup.html

ELinks with BeautifulSoup : linux https://old.reddit.com/r/linux/comments/buf9w5/elinks_with_beautifulsoup/

hellricer/soupmonkey: Userscript manager for ELinks powered by BeautifulSoup library. https://github.com/hellricer/soupmonkey

linux - Is there any way to run ELinks with python-script like FireFox with Selenium webdriver with python - Stack Overflow https://stackoverflow.com/questions/12959805/is-there-any-way-to-run-elinks-with-python-script-like-firefox-with-selenium-web

Other recent interesting elinks configurations: yazgoo/elinks-plug: a lua plugin manager for elinks https://github.com/yazgoo/elinks-plug

LeoLambda commented on 2018-06-25 15:32

Is it desirable to enable ECMAScript/JavaScript support in this package, or should I publish a version with ECMAScript support seperately (as elinks-js-git)?

ferreum commented on 2017-10-07 16:28

@FabioLolix thanks for the notification. I changed the source to repo.or.cz.

FabioLolix commented on 2017-10-07 16:17

http://elinks.cz/elinks is unreachable right now

ferreum commented on 2017-08-10 20:48

updated PKGBUILD: removed unused js185 dependency

ferreum commented on 2017-08-09 17:29

@timofonic I have noticed that the source in this PKGBUILD isn't reachable from time to time. Unfortunately, makepkg complains if I just change it, so I'd like to keep this URL if possible. But if I see this happening, I'll change it.

@kovetskiy I intend to keep this version as patch-free as possible (the only patch used here is for compatibility with recent lua versions). You'll have to apply the patch yourself if you want to use it.