readHistory

Reads all the history for the selected web browser.

void
readHistory
(,
void delegate
(
string url
,)
each_row_cb
)

Parameters

browser WebBrowser

The web browser to search

each_row_cb void delegate
(
string url
,)

The callback to fire for each row in the history.

Examples

import derelict.sqlite3.sqlite : DerelictSQLite3;
DerelictSQLite3.load();

int[string] data;
web_browser_history.readHistory(WebBrowser.Chrome, delegate(string url, int visit_count) {
	data[url] = visit_count;
});

// data output
// ["https://dlang.org/":3, "https://www.google.com/":7, "https://www.reddit.com/":1]

Meta