nepochal / wallabag-cli Goto Github PK
View Code? Open in Web Editor NEWWallabag-cli is a command line client for the self hosted read-it-later app wallabag.
License: MIT License
Wallabag-cli is a command line client for the self hosted read-it-later app wallabag.
License: MIT License
I could not create or pass config file ?
Could not find a valid config. Would you like to create it now? [Y/n] Y Error: Could not load or create the config file.
I try to pass a config file to wallabag , it not work !
wwallabag --config=/my-path/.wallabag-cli
error
Invalid option "--config=/my-path/.wallabag-cli". Use "wallabag" to see a full list of options.
in ubuntu mate 16.04 , using binary wallabag-cli produced following output.
Traceback (most recent call last):
File "wallabag/wallabag.py", line 61, in
File "wallabag/conf.py", line 149, in is_valid
File "wallabag/conf.py", line 216, in load
File "wallabag/conf.py", line 125, in __dicionary2config
File "wallabag/conf.py", line 122, in __dicionary2config
File "wallabag/conf.py", line 81, in __decrypt
File "base64.py", line 88, in b64decode
binascii.Error: Incorrect padding
Failed to execute script wallabag
Get this error since yesterday:
Traceback (most recent call last): File "wallabag.py", line 134, in <module> wallabag_add.add(url, title, star, read, quiet) File "wallabag_add.py", line 33, in add request = api.api_entry_exists(target_url) File "api.py", line 283, in api_entry_exists header = __get_authorization_header() File "api.py", line 126, in __get_authorization_header success, token_or_error = get_token() File "api.py", line 372, in get_token content = json.loads(response.response) File "/usr/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/usr/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Hello.
I am integrating wallabag as a plug-in to ranger.
I have a bit of trouble as I do import the modules, but on each run, conf.is_valid()
will return null, and I will have to run a wallabag_config.start()
.
Source code on conf.is_valid()
calls load()
and immediately after that is using Config
. How do we use them as a module, please?
Kind regards,
Bruno Schroeder
Don't why i can't pipe the wallabag-cli output ?!
wallabag list > entries-list.txt
`Traceback (most recent call last):
File "wallabag/wallabag.py", line 315, in
File "wallabag/wallabag_list.py", line 43, in list_entries
File "wallabag/entry.py", line 37, in entrylist
File "wallabag/entry.py", line 21, in init
AttributeError: 'NoneType' object has no attribute 'replace'
[6639] Failed to execute script wallabag`
After a long time :
`real 0m24,728s
user 0m3,133s
sys 0m0,708s
`
Hello @Nepochal!
Thank you for this tool ๐
Can you add documentation in the README file please?
Nicolas
The formatter
module used by wallabag-cli
was deprecated in Python 3.4, and removed in Python 3.10.
First of all, thank you for your work in this tool.
Love it. Simple and very well documented
Could you update the version released on pypy.org ?
I was wondering why my version didnt have the export pdf command.
Then I find out.
It's because I installed it with "pipx install wallabag-cli"
Which gave me version 0.8, Jan 17, 2020, https://pypi.org/search/?q=wallabag
Which doesnt have the pdf functionality.
The binary released on github is 1.0.
I dont have yet a package for my system, Arch Linux.
And I dont like to mess with the system wide binaries, tracked by the system.
So that's why I will never do things like manually installing binaries:
Download the latest binaries from ....
sudo mv wallabag /usr/local/bin
Or even using "pip" system wide:
pip install -r requirements.txt
I could install it user wide:
pip install --user wallabag-cli
But I also don't like it. And if it's a simple cli application, pipx gives a much cleaner and isolated installation. You could also add this information to the README
Thanks in advance.
Where Does pipx Install Apps From?
By default, pipx uses the same package index as pip, PyPI. pipx can also install from all other sources pip can, such as a local directory, wheel, git url, etc.
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.