Page 1 of 1

Buku - bookmarks manager - Solved

Posted: 31 Aug 2019, 08:19
by M. Eerie
Lately I've been refining (merging/deduplicating) some 3000+ (almost unique) bookmarks using linux standard tools (sort, uniq, etc) and then awk...

I once had a look at buku, which is a amazing tool for the task.

Further research shows that the thing can be installed via Python.

The question is, how can this be converted in a module? I don't know where python pip installs his packages in order to build a module out of them.

Any help would be much appreciated.

Cheers!

Buku - bookmarks manager

Posted: 31 Aug 2019, 12:33
by Kulle
I installed buku via git clone (Note: python3 is required for buku)

Code: Select all

root@porteus:/home/guest# git clone https://github.com/jarun/Buku.git
root@porteus:/home/guest# cd Buku/
root@porteus:/home/guest/Buku# make install
But buku does not work for me:

Code: Select all

root@porteus:/usr/local/bin# ./buku
Traceback (most recent call last):
  File "./buku", line 43, in <module>
    from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'

Buku - bookmarks manager

Posted: 31 Aug 2019, 13:39
by M. Eerie
I think I've found what I was looking for:

Code: Select all

[porteus guest]# pip3 show buku
Name: buku
Version: 4.2.2
Summary: Bookmark manager like a text-based mini-web.
Home-page: https://github.com/jarun/Buku
Author: Arun Prakash Jana
Author-email: engineerarun@gmail.com
License: GPLv3
Location: /usr/lib/python3.7/site-packages
Requires: beautifulsoup4, certifi, cryptography, urllib3, html5lib
Required-by: 
As you can see, pip3 show <package> lists what are the needed packages and their location.

For this to work, you must install python-pip package, however.

Cheers!

Buku - bookmarks manager - Solved

Posted: 31 Aug 2019, 14:39
by M. Eerie
Yes!

Code: Select all

pip3 install asn1crypto beautifulsoup4 buku certifi cffi cryptography pycparser soupsieve

[guest@porteus buku-4.2.2]$ tree usr/
usr/
├── bin
│   ├── buku
│   └── bukuserver
└── lib
    └── python3.7
        └── site-packages
            ├── asn1crypto
            │   ├── algos.py
            │   ├── cms.py
            │   ├── core.py
            │   ├── crl.py
            │   ├── csr.py
            │   ├── _elliptic_curve.py
            │   ├── _errors.py
            │   ├── _ffi.py
            │   ├── _inet.py
            │   ├── __init__.py
            │   ├── _int.py
            │   ├── _iri.py
            │   ├── keys.py
            │   ├── ocsp.py
            │   ├── _ordereddict.py
            │   ├── parser.py
            │   ├── pdf.py
            │   ├── pem.py
            │   ├── _perf
            │   │   ├── _big_num_ctypes.py
            │   │   ├── __init__.py
            │   │   └── __pycache__
            │   │       ├── _big_num_ctypes.cpython-37.pyc
            │   │       └── __init__.cpython-37.pyc
            │   ├── pkcs12.py
            │   ├── __pycache__
            │   │   ├── algos.cpython-37.pyc
            │   │   ├── cms.cpython-37.pyc
            │   │   ├── core.cpython-37.pyc
            │   │   ├── crl.cpython-37.pyc
            │   │   ├── csr.cpython-37.pyc
            │   │   ├── _elliptic_curve.cpython-37.pyc
            │   │   ├── _errors.cpython-37.pyc
            │   │   ├── _ffi.cpython-37.pyc
            │   │   ├── _inet.cpython-37.pyc
            │   │   ├── __init__.cpython-37.pyc
            │   │   ├── _int.cpython-37.pyc
            │   │   ├── _iri.cpython-37.pyc
            │   │   ├── keys.cpython-37.pyc
            │   │   ├── ocsp.cpython-37.pyc
            │   │   ├── _ordereddict.cpython-37.pyc
            │   │   ├── parser.cpython-37.pyc
            │   │   ├── pdf.cpython-37.pyc
            │   │   ├── pem.cpython-37.pyc
            │   │   ├── pkcs12.cpython-37.pyc
            │   │   ├── _teletex_codec.cpython-37.pyc
            │   │   ├── tsp.cpython-37.pyc
            │   │   ├── _types.cpython-37.pyc
            │   │   ├── util.cpython-37.pyc
            │   │   ├── version.cpython-37.pyc
            │   │   └── x509.cpython-37.pyc
            │   ├── _teletex_codec.py
            │   ├── tsp.py
            │   ├── _types.py
            │   ├── util.py
            │   ├── version.py
            │   └── x509.py
            ├── asn1crypto-0.24.0.dist-info
            │   ├── DESCRIPTION.rst
            │   ├── INSTALLER
            │   ├── METADATA
            │   ├── metadata.json
            │   ├── RECORD
            │   ├── top_level.txt
            │   └── WHEEL
            ├── beautifulsoup4-4.8.0.dist-info
            │   ├── AUTHORS
            │   ├── COPYING.txt
            │   ├── INSTALLER
            │   ├── LICENSE
            │   ├── METADATA
            │   ├── RECORD
            │   ├── top_level.txt
            │   └── WHEEL
            ├── bs4
            │   ├── builder
            │   │   ├── _html5lib.py
            │   │   ├── _htmlparser.py
            │   │   ├── __init__.py
            │   │   ├── _lxml.py
            │   │   └── __pycache__
            │   │       ├── _html5lib.cpython-37.pyc
            │   │       ├── _htmlparser.cpython-37.pyc
            │   │       ├── __init__.cpython-37.pyc
            │   │       └── _lxml.cpython-37.pyc
            │   ├── dammit.py
            │   ├── diagnose.py
            │   ├── element.py
            │   ├── formatter.py
            │   ├── __init__.py
            │   ├── __pycache__
            │   │   ├── dammit.cpython-37.pyc
            │   │   ├── diagnose.cpython-37.pyc
            │   │   ├── element.cpython-37.pyc
            │   │   ├── formatter.cpython-37.pyc
            │   │   ├── __init__.cpython-37.pyc
            │   │   └── testing.cpython-37.pyc
            │   ├── testing.py
            │   └── tests
            │       ├── __init__.py
            │       ├── __pycache__
            │       │   ├── __init__.cpython-37.pyc
            │       │   ├── test_builder_registry.cpython-37.pyc
            │       │   ├── test_docs.cpython-37.pyc
            │       │   ├── test_html5lib.cpython-37.pyc
            │       │   ├── test_htmlparser.cpython-37.pyc
            │       │   ├── test_lxml.cpython-37.pyc
            │       │   ├── test_soup.cpython-37.pyc
            │       │   └── test_tree.cpython-37.pyc
            │       ├── test_builder_registry.py
            │       ├── test_docs.py
            │       ├── test_html5lib.py
            │       ├── test_htmlparser.py
            │       ├── test_lxml.py
            │       ├── test_soup.py
            │       └── test_tree.py
            ├── btrfsutil-1.1.1-py3.7.egg-info
            │   ├── dependency_links.txt
            │   ├── PKG-INFO
            │   ├── SOURCES.txt
            │   └── top_level.txt
            ├── buku-4.2.2-py3.7.egg-info
            │   ├── dependency_links.txt
            │   ├── entry_points.txt
            │   ├── installed-files.txt
            │   ├── PKG-INFO
            │   ├── requires.txt
            │   ├── SOURCES.txt
            │   └── top_level.txt
            ├── buku.py
            ├── bukuserver
            │   ├── filters.py
            │   ├── forms.py
            │   ├── __init__.py
            │   ├── __main__.py
            │   ├── __pycache__
            │   │   ├── filters.cpython-37.pyc
            │   │   ├── forms.cpython-37.pyc
            │   │   ├── __init__.cpython-37.pyc
            │   │   ├── __main__.cpython-37.pyc
            │   │   ├── resources.cpython-37.pyc
            │   │   ├── response.cpython-37.pyc
            │   │   ├── server.cpython-37.pyc
            │   │   └── views.cpython-37.pyc
            │   ├── resources.py
            │   ├── response.py
            │   ├── server.py
            │   ├── templates
            │   │   └── bukuserver
            │   │       ├── base.html
            │   │       ├── bookmark_create.html
            │   │       ├── bookmark_create_modal.html
            │   │       ├── bookmark_edit.html
            │   │       ├── bookmark_edit_modal.html
            │   │       ├── bookmarks.html
            │   │       ├── home.html
            │   │       ├── index.html
            │   │       ├── statistic.html
            │   │       └── tags.html
            │   └── views.py
            ├── certifi
            │   ├── cacert.pem
            │   ├── core.py
            │   ├── __init__.py
            │   ├── __main__.py
            │   └── __pycache__
            │       ├── core.cpython-37.pyc
            │       ├── __init__.cpython-37.pyc
            │       └── __main__.cpython-37.pyc
            ├── certifi-2019.6.16.dist-info
            │   ├── DESCRIPTION.rst
            │   ├── INSTALLER
            │   ├── LICENSE.txt
            │   ├── METADATA
            │   ├── metadata.json
            │   ├── RECORD
            │   ├── top_level.txt
            │   └── WHEEL
            ├── cffi
            │   ├── api.py
            │   ├── backend_ctypes.py
            │   ├── _cffi_errors.h
            │   ├── _cffi_include.h
            │   ├── cffi_opcode.py
            │   ├── commontypes.py
            │   ├── cparser.py
            │   ├── _embedding.h
            │   ├── error.py
            │   ├── ffiplatform.py
            │   ├── __init__.py
            │   ├── lock.py
            │   ├── model.py
            │   ├── parse_c_type.h
            │   ├── pkgconfig.py
            │   ├── __pycache__
            │   │   ├── api.cpython-37.pyc
            │   │   ├── backend_ctypes.cpython-37.pyc
            │   │   ├── cffi_opcode.cpython-37.pyc
            │   │   ├── commontypes.cpython-37.pyc
            │   │   ├── cparser.cpython-37.pyc
            │   │   ├── error.cpython-37.pyc
            │   │   ├── ffiplatform.cpython-37.pyc
            │   │   ├── __init__.cpython-37.pyc
            │   │   ├── lock.cpython-37.pyc
            │   │   ├── model.cpython-37.pyc
            │   │   ├── pkgconfig.cpython-37.pyc
            │   │   ├── recompiler.cpython-37.pyc
            │   │   ├── setuptools_ext.cpython-37.pyc
            │   │   ├── vengine_cpy.cpython-37.pyc
            │   │   ├── vengine_gen.cpython-37.pyc
            │   │   └── verifier.cpython-37.pyc
            │   ├── recompiler.py
            │   ├── setuptools_ext.py
            │   ├── vengine_cpy.py
            │   ├── vengine_gen.py
            │   └── verifier.py
            ├── cffi-1.12.3.dist-info
            │   ├── entry_points.txt
            │   ├── INSTALLER
            │   ├── LICENSE.txt
            │   ├── METADATA
            │   ├── RECORD
            │   ├── top_level.txt
            │   └── WHEEL
            ├── _cffi_backend.cpython-37m-x86_64-linux-gnu.so
            ├── cryptography
            │   ├── __about__.py
            │   ├── exceptions.py
            │   ├── fernet.py
            │   ├── hazmat
            │   │   ├── backends
            │   │   │   ├── __init__.py
            │   │   │   ├── interfaces.py
            │   │   │   ├── openssl
            │   │   │   │   ├── aead.py
            │   │   │   │   ├── backend.py
            │   │   │   │   ├── ciphers.py
            │   │   │   │   ├── cmac.py
            │   │   │   │   ├── decode_asn1.py
            │   │   │   │   ├── dh.py
            │   │   │   │   ├── dsa.py
            │   │   │   │   ├── ec.py
            │   │   │   │   ├── ed25519.py
            │   │   │   │   ├── ed448.py
            │   │   │   │   ├── encode_asn1.py
            │   │   │   │   ├── hashes.py
            │   │   │   │   ├── hmac.py
            │   │   │   │   ├── __init__.py
            │   │   │   │   ├── ocsp.py
            │   │   │   │   ├── poly1305.py
            │   │   │   │   ├── __pycache__
            │   │   │   │   │   ├── aead.cpython-37.pyc
            │   │   │   │   │   ├── backend.cpython-37.pyc
            │   │   │   │   │   ├── ciphers.cpython-37.pyc
            │   │   │   │   │   ├── cmac.cpython-37.pyc
            │   │   │   │   │   ├── decode_asn1.cpython-37.pyc
            │   │   │   │   │   ├── dh.cpython-37.pyc
            │   │   │   │   │   ├── dsa.cpython-37.pyc
            │   │   │   │   │   ├── ec.cpython-37.pyc
            │   │   │   │   │   ├── ed25519.cpython-37.pyc
            │   │   │   │   │   ├── ed448.cpython-37.pyc
            │   │   │   │   │   ├── encode_asn1.cpython-37.pyc
            │   │   │   │   │   ├── hashes.cpython-37.pyc
            │   │   │   │   │   ├── hmac.cpython-37.pyc
            │   │   │   │   │   ├── __init__.cpython-37.pyc
            │   │   │   │   │   ├── ocsp.cpython-37.pyc
            │   │   │   │   │   ├── poly1305.cpython-37.pyc
            │   │   │   │   │   ├── rsa.cpython-37.pyc
            │   │   │   │   │   ├── utils.cpython-37.pyc
            │   │   │   │   │   ├── x25519.cpython-37.pyc
            │   │   │   │   │   ├── x448.cpython-37.pyc
            │   │   │   │   │   └── x509.cpython-37.pyc
            │   │   │   │   ├── rsa.py
            │   │   │   │   ├── utils.py
            │   │   │   │   ├── x25519.py
            │   │   │   │   ├── x448.py
            │   │   │   │   └── x509.py
            │   │   │   └── __pycache__
            │   │   │       ├── __init__.cpython-37.pyc
            │   │   │       └── interfaces.cpython-37.pyc
            │   │   ├── bindings
            │   │   │   ├── _constant_time.abi3.so
            │   │   │   ├── __init__.py
            │   │   │   ├── openssl
            │   │   │   │   ├── binding.py
            │   │   │   │   ├── _conditional.py
            │   │   │   │   ├── __init__.py
            │   │   │   │   └── __pycache__
            │   │   │   │       ├── binding.cpython-37.pyc
            │   │   │   │       ├── _conditional.cpython-37.pyc
            │   │   │   │       └── __init__.cpython-37.pyc
            │   │   │   ├── _openssl.abi3.so
            │   │   │   ├── _padding.abi3.so
            │   │   │   └── __pycache__
            │   │   │       └── __init__.cpython-37.pyc
            │   │   ├── __init__.py
            │   │   ├── _oid.py
            │   │   ├── primitives
            │   │   │   ├── asymmetric
            │   │   │   │   ├── dh.py
            │   │   │   │   ├── dsa.py
            │   │   │   │   ├── ec.py
            │   │   │   │   ├── ed25519.py
            │   │   │   │   ├── ed448.py
            │   │   │   │   ├── __init__.py
            │   │   │   │   ├── padding.py
            │   │   │   │   ├── __pycache__
            │   │   │   │   │   ├── dh.cpython-37.pyc
            │   │   │   │   │   ├── dsa.cpython-37.pyc
            │   │   │   │   │   ├── ec.cpython-37.pyc
            │   │   │   │   │   ├── ed25519.cpython-37.pyc
            │   │   │   │   │   ├── ed448.cpython-37.pyc
            │   │   │   │   │   ├── __init__.cpython-37.pyc
            │   │   │   │   │   ├── padding.cpython-37.pyc
            │   │   │   │   │   ├── rsa.cpython-37.pyc
            │   │   │   │   │   ├── utils.cpython-37.pyc
            │   │   │   │   │   ├── x25519.cpython-37.pyc
            │   │   │   │   │   └── x448.cpython-37.pyc
            │   │   │   │   ├── rsa.py
            │   │   │   │   ├── utils.py
            │   │   │   │   ├── x25519.py
            │   │   │   │   └── x448.py
            │   │   │   ├── ciphers
            │   │   │   │   ├── aead.py
            │   │   │   │   ├── algorithms.py
            │   │   │   │   ├── base.py
            │   │   │   │   ├── __init__.py
            │   │   │   │   ├── modes.py
            │   │   │   │   └── __pycache__
            │   │   │   │       ├── aead.cpython-37.pyc
            │   │   │   │       ├── algorithms.cpython-37.pyc
            │   │   │   │       ├── base.cpython-37.pyc
            │   │   │   │       ├── __init__.cpython-37.pyc
            │   │   │   │       └── modes.cpython-37.pyc
            │   │   │   ├── cmac.py
            │   │   │   ├── constant_time.py
            │   │   │   ├── hashes.py
            │   │   │   ├── hmac.py
            │   │   │   ├── __init__.py
            │   │   │   ├── kdf
            │   │   │   │   ├── concatkdf.py
            │   │   │   │   ├── hkdf.py
            │   │   │   │   ├── __init__.py
            │   │   │   │   ├── kbkdf.py
            │   │   │   │   ├── pbkdf2.py
            │   │   │   │   ├── __pycache__
            │   │   │   │   │   ├── concatkdf.cpython-37.pyc
            │   │   │   │   │   ├── hkdf.cpython-37.pyc
            │   │   │   │   │   ├── __init__.cpython-37.pyc
            │   │   │   │   │   ├── kbkdf.cpython-37.pyc
            │   │   │   │   │   ├── pbkdf2.cpython-37.pyc
            │   │   │   │   │   ├── scrypt.cpython-37.pyc
            │   │   │   │   │   └── x963kdf.cpython-37.pyc
            │   │   │   │   ├── scrypt.py
            │   │   │   │   └── x963kdf.py
            │   │   │   ├── keywrap.py
            │   │   │   ├── padding.py
            │   │   │   ├── poly1305.py
            │   │   │   ├── __pycache__
            │   │   │   │   ├── cmac.cpython-37.pyc
            │   │   │   │   ├── constant_time.cpython-37.pyc
            │   │   │   │   ├── hashes.cpython-37.pyc
            │   │   │   │   ├── hmac.cpython-37.pyc
            │   │   │   │   ├── __init__.cpython-37.pyc
            │   │   │   │   ├── keywrap.cpython-37.pyc
            │   │   │   │   ├── padding.cpython-37.pyc
            │   │   │   │   └── poly1305.cpython-37.pyc
            │   │   │   ├── serialization
            │   │   │   │   ├── base.py
            │   │   │   │   ├── __init__.py
            │   │   │   │   ├── pkcs12.py
            │   │   │   │   ├── __pycache__
            │   │   │   │   │   ├── base.cpython-37.pyc
            │   │   │   │   │   ├── __init__.cpython-37.pyc
            │   │   │   │   │   ├── pkcs12.cpython-37.pyc
            │   │   │   │   │   └── ssh.cpython-37.pyc
            │   │   │   │   └── ssh.py
            │   │   │   └── twofactor
            │   │   │       ├── hotp.py
            │   │   │       ├── __init__.py
            │   │   │       ├── __pycache__
            │   │   │       │   ├── hotp.cpython-37.pyc
            │   │   │       │   ├── __init__.cpython-37.pyc
            │   │   │       │   ├── totp.cpython-37.pyc
            │   │   │       │   └── utils.cpython-37.pyc
            │   │   │       ├── totp.py
            │   │   │       └── utils.py
            │   │   └── __pycache__
            │   │       ├── __init__.cpython-37.pyc
            │   │       └── _oid.cpython-37.pyc
            │   ├── __init__.py
            │   ├── __pycache__
            │   │   ├── __about__.cpython-37.pyc
            │   │   ├── exceptions.cpython-37.pyc
            │   │   ├── fernet.cpython-37.pyc
            │   │   ├── __init__.cpython-37.pyc
            │   │   └── utils.cpython-37.pyc
            │   ├── utils.py
            │   └── x509
            │       ├── base.py
            │       ├── certificate_transparency.py
            │       ├── extensions.py
            │       ├── general_name.py
            │       ├── __init__.py
            │       ├── name.py
            │       ├── ocsp.py
            │       ├── oid.py
            │       └── __pycache__
            │           ├── base.cpython-37.pyc
            │           ├── certificate_transparency.cpython-37.pyc
            │           ├── extensions.cpython-37.pyc
            │           ├── general_name.cpython-37.pyc
            │           ├── __init__.cpython-37.pyc
            │           ├── name.cpython-37.pyc
            │           ├── ocsp.cpython-37.pyc
            │           └── oid.cpython-37.pyc
            ├── cryptography-2.7.dist-info
            │   ├── AUTHORS.rst
            │   ├── INSTALLER
            │   ├── LICENSE
            │   ├── LICENSE.APACHE
            │   ├── LICENSE.BSD
            │   ├── LICENSE.PSF
            │   ├── METADATA
            │   ├── RECORD
            │   ├── top_level.txt
            │   └── WHEEL
            ├── __pycache__
            │   └── buku.cpython-37.pyc
            ├── pycparser
            │   ├── _ast_gen.py
            │   ├── ast_transforms.py
            │   ├── _build_tables.py
            │   ├── _c_ast.cfg
            │   ├── c_ast.py
            │   ├── c_generator.py
            │   ├── c_lexer.py
            │   ├── c_parser.py
            │   ├── __init__.py
            │   ├── lextab.py
            │   ├── ply
            │   │   ├── cpp.py
            │   │   ├── ctokens.py
            │   │   ├── __init__.py
            │   │   ├── lex.py
            │   │   ├── __pycache__
            │   │   │   ├── cpp.cpython-37.pyc
            │   │   │   ├── ctokens.cpython-37.pyc
            │   │   │   ├── __init__.cpython-37.pyc
            │   │   │   ├── lex.cpython-37.pyc
            │   │   │   ├── yacc.cpython-37.pyc
            │   │   │   └── ygen.cpython-37.pyc
            │   │   ├── yacc.py
            │   │   └── ygen.py
            │   ├── plyparser.py
            │   ├── __pycache__
            │   │   ├── _ast_gen.cpython-37.pyc
            │   │   ├── ast_transforms.cpython-37.pyc
            │   │   ├── _build_tables.cpython-37.pyc
            │   │   ├── c_ast.cpython-37.pyc
            │   │   ├── c_generator.cpython-37.pyc
            │   │   ├── c_lexer.cpython-37.pyc
            │   │   ├── c_parser.cpython-37.pyc
            │   │   ├── __init__.cpython-37.pyc
            │   │   ├── lextab.cpython-37.pyc
            │   │   ├── plyparser.cpython-37.pyc
            │   │   └── yacctab.cpython-37.pyc
            │   └── yacctab.py
            ├── pycparser-2.19-py3.7.egg-info
            │   ├── dependency_links.txt
            │   ├── installed-files.txt
            │   ├── PKG-INFO
            │   ├── SOURCES.txt
            │   └── top_level.txt
            ├── soupsieve
            │   ├── css_match.py
            │   ├── css_parser.py
            │   ├── css_types.py
            │   ├── __init__.py
            │   ├── __meta__.py
            │   ├── __pycache__
            │   │   ├── css_match.cpython-37.pyc
            │   │   ├── css_parser.cpython-37.pyc
            │   │   ├── css_types.cpython-37.pyc
            │   │   ├── __init__.cpython-37.pyc
            │   │   ├── __meta__.cpython-37.pyc
            │   │   └── util.cpython-37.pyc
            │   └── util.py
            └── soupsieve-1.9.3.dist-info
                ├── INSTALLER
                ├── LICENSE.md
                ├── METADATA
                ├── RECORD
                ├── top_level.txt
                └── WHEEL

64 directories, 438 files
[guest@porteus buku-4.2.2]$ buku
buku (? for help) 


Buku - bookmarks manager - Solved

Posted: 31 Aug 2019, 14:52
by M. Eerie
This module is working for me. (x64) just in case.

Buku - bookmarks manager - Solved

Posted: 31 Aug 2019, 16:18
by Kulle
Hi M. Eerie
The module buku-4.2.2 .xzm does not work for me. Why??

Code: Select all

guest@porteus:~$ buku
Traceback (most recent call last):
  File "/usr/bin/buku", line 6, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
Note: I use Porteus 4.0 (x64) Xfce

Buku - bookmarks manager - Solved

Posted: 31 Aug 2019, 18:58
by M. Eerie
Hi Kulle.

Do you have python3 and python-pip installed?

Once you get the last one, it should be a breeze installing packages from it.

(I'm using Nemesis...)

Cheers!