Download Latest Version CountBookmarks.zip (8.6 kB)
Email in envelope

Get an email when there's a new version of CountBookmarks

Home
Name Modified Size InfoDownloads / Week
CountBookmarks.zip 2020-04-07 8.6 kB
ReadMe.md 2020-04-07 2.4 kB
Totals: 2 Items   11.1 kB 0

CountBookmarks

Purpose: To count the bookmarks in each folder and subfolder of a bookmarks file exported by a web browser. The output file that this program generates can be imported into a spreadsheet and sorted to show the relative size of all your bookmark folders.

Inputs: This program requires a command line argument specifying the fully qualified name of a bookmarks file in HTML format and, optionally, a command line argument (-d) indicating that debugging output is to be included in the log file.

Outputs: For each folder of the bookmarks file, the folder's name, the number of bookmarks local to that folder, and the total number of bookmarks in that folder and all of its subfolders are written to file CountBookmarks.csv, in the current working directory. To allow for commas in bookmark folder names, this output file uses semicolons for field separators instead of commas. Select semicolon as the field separator when importing this file into a spreadsheet. This program also generates a log file, CountBookmarks.log, in the current working directory.

Command Syntax: python CountBookmarks.py [-d] File
Command Options: -d: Include debugging output in the log file.
Command Example: python CountBookmarks.py "/home/yourname/Downloads/your bookmarks.html"

Compatible Browsers: This program is compatible with the Google Chrome, Mozilla Firefox, Microsoft Edge, and Microsoft Internet Explorer browsers. It may also work with non-Google, Chromium-based browsers and Apple Safari.


Development and Test Environments

Browsers

  • Google Chrome 80.0.3987.132 (Official Build) (64-bit)
  • Mozilla Firefox 74.0 (64-bit)
  • Microsoft Edge 44.18362.449.0
  • Microsoft Internet Explorer 11.719.18362.0

Operating Systems

  • Windows 10 Home 1909
  • Ubuntu Linux 18.04 LTS

Programming Languages

  • Python 3.8.2
  • Python 3.6.9

Python Environment on Ubuntu Linux

  • See https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-local-programming-environment-on-ubuntu-18-04

License: https://www.apache.org/licenses/LICENSE-2.0

Source: ReadMe.md, updated 2020-04-07