Skip to content

Filter and display invalid websites URL from the firefox bookmark json file.

License

Notifications You must be signed in to change notification settings

eric15342335/firefox-bookmark-invalidation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firefox-bookmark-invalidator

Description

firefox-bookmark-invalidator is a Python script designed to validate and analyze the URLs stored in your Firefox bookmarks. The script processes a JSON file exported from Firefox, checks the validity of each URL, and provides a detailed summary of valid and invalid websites. It also offers insights into the types of protocols and top-level domains used in your bookmarks.

Features

  • URL Validation: Tests each URL for accessibility and categorizes them as valid or invalid.
  • Error Grouping: Groups invalid URLs by common error types for easier troubleshooting.
  • Bookmark Analysis: Provides statistics on protocol handlers, top-level domains, and other interesting metrics.
  • System Time Check: Ensures your system clock is synchronized with an NTP server to avoid SSL certificate validation failures due to time discrepancies.
  • Interactive Display: Dynamically updates the terminal display with the current status of URL validation.

Setup

pip3 install -r requirements.txt

Usage

First, obtain the bookmarks json file from Firefox:
First Step
Second Step
Third Step

Then, run the script:

python main.py /path/to/bookmarks.json

Video in action

firefox-bookmarks-invalidator-demo.mp4

Thanks

Special thanks to Claude 3.5 Sonnet for the code assistance.