This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# Go to chrome tools -> bookmark manager -> organize -> export -> call it bookmarks.html | |
# Run this from the same directory as the export | |
File.open('bookmarks.html', 'r') do |f| | |
urls, dups = [], [] | |
domains = {} | |
while line = f.gets | |
url = line.match(/<A HREF="([^"]*)"/) | |
if url |
NewerOlder