Package Details: elinks-git v0.17.0.r167.gdcc5d378-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, JavaScript disabled.
Upstream URL: https://github.com/rkd77/elinks
Keywords: browser devel textmode web
Licenses: GPL
Conflicts: elinks
Provides: elinks
Submitter: ferreum
Maintainer: ferreum
Last Packager: ferreum
Votes: 4
Popularity: 0.000000
First Submitted: 2017-01-18 20:19 (UTC)
Last Updated: 2024-04-04 18:12 (UTC)

Required by (21)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

m040601 commented on 2020-02-08 00:21 (UTC)

Building elinks from source by pulling from, https://github.com/rkd77/felinks instead off, http://repo.or.cz/elinks.git

seems to be working and making it compatible with both python2 and python3

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

.... I pushed the changes that make it compatible with both python2 and python3 and it seems to run just fine in felinks.
... all I needed was to instal python2 development libraries and run ./configure --with-python && make.
 ... For that I installed `libpython3.7-dev` package from Debian.

m040601 commented on 2020-02-03 00:17 (UTC) (edited on 2020-02-03 00:34 (UTC) by m040601)

It seems that Debian, https://tracker.debian.org/pkg/elinks , is also building their elinks source package from the github repo, https://github.com/rkd77/felinks , not from the "original" http://repo.or.cz/elinks.git . Confusingly, they still mark the "homepage" as http://elinks.cz

Debian elinks official maintainer guy, in December 2019:

New upstream version 0.13.0 (cf6ac103) https://salsa.debian.org/aelmahmoudy-guest/elinks/commit/cf6ac10334a0f8c93f1c251d0fe6f8587c3df0b6

m040601 commented on 2020-02-02 23:03 (UTC) (edited on 2020-02-02 23:03 (UTC) by m040601)

Some news from the github repo, https://github.com/rkd77/felinks/commit/52ed7c5926c4587ccac135f2a9527f54276e9c53

ELinks 0.13.1:
--------------------
Released on 2020-01-31.
* Fixed issue with uploading files to local cgi.
* Python scripts in contrib converted to python3.

m040601 commented on 2020-01-18 03:34 (UTC) (edited on 2020-01-18 03:44 (UTC) by m040601)

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 (UTC) (edited on 2020-01-17 10:29 (UTC) by m040601)

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 (UTC)

@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 (UTC) (edited on 2019-12-24 07:56 (UTC) by m040601)

@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 (UTC)

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 (UTC)

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 (UTC)

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