artur-shaik / wallabag-client Goto Github PK
View Code? Open in Web Editor NEWCommand line client for the self hosted read-it-later app Wallabag
License: MIT License
Command line client for the self hosted read-it-later app Wallabag
License: MIT License
Hello,
I'm not able to actually mark an article as read using the wallabag add -r <url>
command.
When i go and check, for example in the web admin, the new article will be filed under Unread entries.
I did not find a way to find untagged articles in my installation.
I try to build wallabag on Ubuntu 20.04.1 with Python 3.8.5 and pip 20.0.2
After setting up the virtualenv (wheel is installed), I get the following error:
...
Building wheels for collected packages: delorean
Building wheel for delorean (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/dirk/venv/wallabag-client/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-b7j6ynf0/delorean/setup.py'"'"'; __file__='"'"'/tmp/pip-install-b7j6ynf0/delorean/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-yot5_9f3
cwd: /tmp/pip-install-b7j6ynf0/delorean/
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Failed building wheel for delorean
Running setup.py clean for delorean
Failed to build delorean
...
Thanks in advance for your tremendous support.
Now, that I found all untagged articles I like to tag articles as well.
I suggest doing something like
wallabag update <id> --addtag tag1,tag2,tag3
wallabag update <id> --deltag tag1,tag2,tag3
Hello,
thanks for the great software! I just spent some time figuring out, why it refused to run on my machine. Turns out the culprit was the click package. After I upgraded from 7.0 (which is the minimum required in setup.py) to 8.1.3 everything worked as expected. Hope this report helps in making the software even better!
Kind regards :)
Can you please have a look - wallabag-client 1.6.4 on Ubuntu 20.04, installed via pip.
$ wallabag list --unread --count
Traceback (most recent call last):
File "/home/dirk/venv/wallabag-client/bin/wallabag", line 8, in <module>
sys.exit(cli())
File "/home/dirk/venv/wallabag-client/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/dirk/venv/wallabag-client/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/dirk/venv/wallabag-client/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/dirk/venv/wallabag-client/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/dirk/venv/wallabag-client/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/dirk/venv/wallabag-client/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/dirk/venv/wallabag-client/lib/python3.8/site-packages/wallabag/wallabag.py", line 93, in wrapper
func(*args, **kwargs)
File "/home/dirk/venv/wallabag-client/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/dirk/venv/wallabag-client/lib/python3.8/site-packages/wallabag/wallabag.py", line 128, in list
run_command(
File "/home/dirk/venv/wallabag-client/lib/python3.8/site-packages/wallabag/wallabag.py", line 472, in run_command
result, output = command.execute()
File "/home/dirk/venv/wallabag-client/lib/python3.8/site-packages/wallabag/commands/command.py", line 16, in execute
self.log.debug('executing command: %s', self.__class__.__name__)
AttributeError: 'CountCommand' object has no attribute 'log'
Can we get an option to output all entries or all unread entries instead of just being able to show and output a specific entry by providing its entry id? This would make it possible to script automated output of unread entries for syncing with various devices.
I have community/python-tzlocal 4.0.1-1
installed via aur archlnux package.
I've got an error on dependency with tzlocal when launch wallabag
client:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 777, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (tzlocal 4.0.1 (/usr/lib/python3.9/site-packages), Requirement.parse('tzlocal<3'), {'wallabag-client'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/wallabag", line 33, in <module>
sys.exit(load_entry_point('wallabag-client==1.8.0', 'console_scripts', 'wallabag')())
File "/usr/bin/wallabag", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/usr/lib/python3.9/site-packages/wallabag/wallabag.py", line 15, in <module>
from wallabag.commands.add import AddCommand, AddCommandParams
File "/usr/lib/python3.9/site-packages/wallabag/commands/add.py", line 10, in <module>
from wallabag.entry import Entry
File "/usr/lib/python3.9/site-packages/wallabag/entry.py", line 3, in <module>
import delorean
File "/usr/lib/python3.9/site-packages/delorean/__init__.py", line 7, in <module>
from delorean.dates import (
File "/usr/lib/python3.9/site-packages/delorean/dates.py", line 9, in <module>
import humanize
File "/usr/lib/python3.9/site-packages/humanize/__init__.py", line 2, in <module>
import pkg_resources
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module>
def _initialize_master_working_set():
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 570, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'tzlocal<3' distribution was not found and is required by wallabag-client
Environment: Archlinux Linux 5.15.5-arch1-1
Package info:
:: Interrogation de AUR...
Dépôt : aur
Nom : wallabag-client
Mots-clés : Aucun
Version : 1.8.0-2
Description : Command line client for the self hosted read-it-later app Wallabag
URL : https://github.com/artur-shaik/wallabag-client
URL AUR : https://aur.archlinux.org/packages/wallabag-client
Groupes : Aucun
Licences : MIT
Fournit : Aucun
Dépend de : python-beautifulsoup4 python-pycryptodome python-requests python-click python-click-spinner python-click-repl python-pyxdg python-colorama python-setuptools python-delorean
python-tzlocal python-humanize python-lxml python-tabulate python-packaging python-babel python-markdownify
Construction des dépendances: python-setuptools python-wheel
Vérification des dépendances: Aucun
Dépendances optionnelles: Aucun
En conflit avec : Aucun
Mainteneur : bjo
Votes : 0
Popularité : 0.000000
Premier envoi : Fri 08 Jan 2021 09:30:20 PM CET
Dernières modifications: Sat 21 Aug 2021 05:38:32 PM CEST
Obsolète : No
I would like to list articles with shared multiple tags, I thought I had done this before but I'm getting some different results now.
For each new tag I add, I get more results, not less. So it seems to be doing an OR search, not an AND search.
example command: wallabag list -g "tag" -g "tag -g "tag"
wallabag --version
command gives an error, but it is the latest 1.8.3 as listed from pipxIt works very well to be able to export to json, but ... I could add the possibility of exporting to markdown. That would be amazing.
Thanks.
Great app
Hello,
First off, thanks for this tool. I 've started using it and I must say I find it quite useful.
However, I am meeting the following problem. Trying to submit some URLs to my wallabag instance via it I get
Error: An unknown error occured. 301
Which, unsurprisingly is an HTTP 301 status code, returned when visiting the submitted URL, with the corresponding Location
HTTP header set in the response to the moved place of the page I want to add in wallabag. Also unsurprisingly, this might be the first in a series of 301s and/or 302s that need to be followed to end up in the wanted page.
Any chance wallabag can support following redirects? Many thanks!
My best guess is a python upgrade broke it. Nothing with wallabag-client has been changed at all and was working normally earlier in the week. When I went to run it yesterday get
from wcwidth import wcwidth
ImportError: cannot import name 'wcwidth' from 'wcwidth' (unknown location)
When running the list command I get the following output.
Traceback (most recent call last):
File "/usr/bin/wallabag", line 33, in <module>
sys.exit(load_entry_point('wallabag-client==1.6.3', 'console_scripts', 'wallabag')())
File "/usr/lib/python3.9/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.9/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/lib/python3.9/site-packages/wallabag/wallabag.py", line 93, in wrapper
func(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/lib/python3.9/site-packages/wallabag/wallabag.py", line 128, in list
run_command(
File "/usr/lib/python3.9/site-packages/wallabag/wallabag.py", line 472, in run_command
result, output = command.execute()
File "/usr/lib/python3.9/site-packages/wallabag/commands/command.py", line 22, in execute
return self._run()
File "/usr/lib/python3.9/site-packages/wallabag/commands/list.py", line 59, in _run
api.request().response['_embedded']["items"])
File "/usr/lib/python3.9/site-packages/wallabag/api/api.py", line 200, in request
return self._make_request(request)
File "/usr/lib/python3.9/site-packages/wallabag/api/get_list_entries.py", line 41, in _make_request
return self._request_get(request)
File "/usr/lib/python3.9/site-packages/wallabag/api/api.py", line 230, in _request_get
return self.__make_request(request)
File "/usr/lib/python3.9/site-packages/wallabag/api/api.py", line 325, in __make_request
response = Response(
File "/usr/lib/python3.9/site-packages/wallabag/api/api.py", line 146, in __init__
f"An unknown error occured. {result.status_code}",
UnboundLocalError: local variable 'result' referenced before assignment
I suspect, from my limited understanding, I am supposed to be getting just the unknown error message rather than the python trace. Although it would be helpful to know why I get that error as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.