Recommend this page to a friend! |
Classes of Martin Latter | Bookmarks Checker for Chrome and Firefox | README.md | Download |
|
DownloadBookmarks CheckerIdentify dead links in Firefox and Chrome bookmarks.BackgroundSo many browser bookmarks – there are 1,900 URLs in my bookmarks. And in just one year, 120 of those URLs ceased to exist. A simple PHP prototype script provided a slow way (~1 URL per second) of checking for dead links. I switched to Python to leverage its threading capabilities and speed up the process. Then I finally got round to adding cURL multi to the PHP script. Example
Scripts
UsageThe scripts by default will attempt to load a file in the same directory called bookmarks.html An alternative filename can be specified on the command-line. The scripts parse the file and try to access each URL, printing a list of URLs that cannot be accessed (which will intermittently include a false positive). Python
(or make the file executable and run directly e.g. Switches
PHP
Exporting Browser Bookmarks <a id="export"></a>FirefoxBookmarks > Show All Bookmarks > Import and Backup > Export Bookmarks to HTML ChromeAccess Chrome's Bookmark Manager with: <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>O</kbd> or
then click Organize > Export bookmarks to HTML file ... OtherPython ScriptsSetting CreditsDoug Hellmann, jfs, and philshem for threading pools in Python. LicenseScripts are released under the GPL v.3. |