wishlist
wishlist copied to clipboard
Can't authenticate
I installed wishlist with pip (using the --user parameter so the installation isn't system-wide, only local, i.e. for my user). I can successfully set the name of the (private) wishlist. However typing /home/arbolis/.local/bin/wishlist auth yields:
Traceback (most recent call last): File "/home/arbolis/.local/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 72, in start self.process = subprocess.Popen(cmd, env=self.env, File "/usr/lib/python3.8/subprocess.py", line 854, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'geckodriver'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/arbolis/.local/bin/wishlist", line 33, in
I am not sure how to fix the problem. As a side question, is it possible to authenticate "programmatically"? I.e. I'd dump the credentials in a file.py that I would run, for example, instead of using the command line.
Sorry for the incredibly late response.
The geckodriver installation is talked about here.
As for your other question:
As a side question, is it possible to authenticate "programmatically"? I.e. I'd dump the credentials in a file.py that I would run, for example, instead of using the command line.
I tried to make this as easy I could at the time but I'm not sure if the auth stuff even works anymore because the nice thing about Amazon is they almost never log you out.
The authentication to read a private wishlist is really just cookie based, so I've always wondered if you could actually just log in normally in a browser and then just grab all the amazon cookies and dump them in a file.
Brow has a cache directory (which can be customized using BROW_CACHE_DIR=<PATH>
, otherwise I think it just uses system temp) and in that cache directory there is a cookie file named www.amazon.com.txt
which is basically in the form (I think) of:
KEY
VALUE
KEY
VALUE
...
My cookie file has 393 lines and is what is being used to read the private wishlist.
So yes, you can probably completely bypass trying to authenticate, but it will take a little bit of manual work to get wishlist into the right state to be able to read your private wishlist.