An automatic logo thumbnail fetcher and changer for vivaldi speedDial
-
@gotham13121997
Yes.. is it.
I have a large number of bookmarks, and they are sorted with folders/subfoldres.
Will wait for fixing!
Many thanks! I think something like your sript, must be "right in box" with any good browser! -
@gwen-dragon I will look into the favicon idea. it will be better. thanks
-
@taravasya Its fixed, It should work now, Thanks to recursion and mutable objects. I have tested on multiple cases . Do tell me if there is a bug.
-
@gotham13121997
Its correct work now! Thank you for sharing this!! -
@gotham13121997
Hi, does the script overwrite own images?Cheers, mib
-
@mib2berlin Yes it does but the copy of the files will be made in the working directory before changing the thumbnails. One can replace these files to revert back. Though if you already have custom thumbnails you dont need to run this script
-
@mib2berlin I have made changes to let one select the names of speed dials to change thumbnails for or the names of speed dials to skip. You can try it out
-
@gotham13121997
Ah, cool will try later today.Thank you, mib
-
@gotham13121997 Now there is a show_thumbnail_mode, which shows the thumbnail before changing and asks wether you want to change or not. May not work in all the systems . Not tested much
-
@gwen-dragon Yeah I have worked with beautiful soup before. It will be good for this. Only issue is the size. as favicons are pretty small.
-
@mib2berlin
Oooops, forgot to mention, I am on Linux.
Got following error.Traceback (most recent call last): File "thumb_fetcher.py", line 1, in <module> from urllib.parse import urlsplit ImportError: No module named parse
If you are interested I can change script and test on Linux.
It`s not that important to me but may other Linux user like to use it too.
I am familiar with Git and can read simple Python scripts but not write by myself.Cheers, mib
-
@mib2berlin said in An automatic logo thumbnail fetcher and changer for vivaldi speedDial:
from urllib.parse import urlsplit
this is python 3.x
you are probably using 2.7 (like I do)
https://docs.python.org/2/library/urlparse.html -
@mib2berlin It seems like a problem of python version. Also if you do find the location of Bookmark and Top Sites file in linux. Kindly update it on the repo. Contributions are welcome
-
@iAN-CooG, thanks, using python3 instead of python to start the script now.
(Opensuse has 2.7 and 3 as default installation)
@gotham13121997
Location on Linux is /home/user/.config/vivaldi-snapshot/Default/filename
I had to install Pillow, akonadi-server-sqlite, sqlite3 and update pil to 9, standard was 7.Traceback (most recent call last): File "thumb_fetcher.py", line 129, in <module> startup() File "thumb_fetcher.py", line 123, in startup change_thumb() File "thumb_fetcher.py", line 102, in change_thumb speeddial = bookmarks["roots"]["bookmark_bar"]["children"][0]["children"] KeyError: 'children'
Now we are at lines 100 instead 1.
Cheers, mib
-
@mib2berlin Hmm seems like bookmark file has a different structure in linux I will have to look into this. Till then I will make an issue on github. Sorry
-
@gotham13121997
I can send you my bookmark file as privat message, if needed.
( /me should look into if only nice bookmarks in it.) -
@mib2berlin That will be nice. dont worry lol
-
@gotham13121997
no idea how to post private messages, anyway:https://www.dropbox.com/s/p4asib9ae4lb2tm/Bookmarks?dl=0
Cheers
-
@mib2berlin thanks
-
@mib2berlin Go to the recipient's profile, click on the profile menu button and on "continue chat with...".