An automatic logo thumbnail fetcher and changer for vivaldi speedDial
-
@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...".
-
@gwen-dragon Of course. Has Vivaldi started blocking chats on purpose for all new members?
-
@gwen-dragon It seems it may be the case. I used to never see blocked chat. Now it seems it's blocked for all new users.
-
-
-
@mib2berlin I think I may have got the problem, In your Bookmark file the first entry is not the speeddial folder but a normal folder and the speeddial folder is down somewhere. I will work on a fix. Also you have thumbnail data inside the bookmark file itself lol
-
@ayespy said in An automatic logo thumbnail fetcher and changer for vivaldi speedDial:
@gwen-dragon It seems it may be the case. I used to never see blocked chat. Now it seems it's blocked for all new users.
Would they had enabled this option?
Windows 10 (x64) | Anniversary Update
Vivaldi Stable Β· SnapshotVivaldi Reset and Back up
-
@mib2berlin fixed. It was a problem related to multiple speeddials. Now script supports multiple speeddials. Your bookmark file is so large that it took 5 minutes to run even when the thumbnails of a lot of the sites couldnot be found. Thank you very much for sending it.
-
@zalex108 I couldn't guess. I think it was by accident.
-
Nice work @gotham13121997 .
This is how I got the script to work in Ubuntu 17.04 for other Ubuntu users.
Python 2.7 and 3.5 are installed but 2.7 is default.glen@GU17:~$ python -V Python 2.7.13
Installed python3-pip, then installed the python-resize-image module.
sudo apt install python3-pip
pip3 install --user python-resize-image
Cloned git repo.
git clone https://github.com/Gotham13121997/Vivaldi-SpeedDial-Thumbnail-Fetcher.git
Edited the bookmark_path and top_sites_path in thumb_fetcher.py as shown on the github page.
(Usingshow_thumbnail_mode=True
in the script, also works if you want a preview before changing logo. )
Run the script using python3.
python3 thumb_fetcher.py
Resulting speedDial images: