How to export opened tabs in Chrome?

In macOS you can use AppleScript.

List the URL of each tab in the frontmost window:

osascript -e{'set text item delimiters to linefeed','tell app"google chrome"to url of tabs of window 1 as text'}

List the URL of each tab in all windows:

osascript -e{'set text item delimiters to linefeed','tell app"google chrome"to url of tabs of windows as text'}

List the URL and title of each tab in the frontmost window:

osascript -e{'set o to""','tell app"google chrome"','repeat with t in tabs of window 1','set o to o&url of t&" "&title of t&linefeed',end,end}|sed \$d

List the URL and title of each tab in all windows:

osascript -e{'set o to""','tell app"google chrome"','repeat with t in tabs of windows','set o to o&url of t&" "&title of t&linefeed',end,end}|sed \$d


Tab Snap allows you to copy all open tab links to the clipboard. Once copied, you can save it to a text file.

enter image description here


TabsOutliner (a Chrome extension which display all currently open tabs and windows) can export not only flat tabs list to a usable text format (to a very usable saved HTML by saving the TO window through Ctrl-S, also to GoogleDoc or to Evernote or some other programs by drag & drop). But the exported data will contain the relations between the tabs (what was opened from what) and also the notes and all other marks which accompany the tabs in TabsOutliner.

A screenshot which shows the tabs list in Tabs Outliner and how the data from some window is exported to Google Doc (just by drag & drop from Tabs Outliner interface, it is possible to export all windows by one drag & drop gesture if drag the root node)

enter image description here (Same screenshot but in full res: http://i.imgur.com/UgwzDbh.png)


Declaimer - as seems there is some restrictions to promote own work, so i must note that i am the developer of this extension.