readHistory

Reads all the history for the selected web browser.

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

Parameters

browser

The web browser to search

each_row_cb
Type: void delegate(
string url
,
)

The callback to fire for each row in the history.

Examples

1 import derelict.sqlite3.sqlite : DerelictSQLite3;
2 DerelictSQLite3.load();
3 
4 int[string] data;
5 web_browser_history.readHistory(WebBrowser.Chrome, delegate(string url, int visit_count) {
6 	data[url] = visit_count;
7 });
8 
9 // data output
10 // ["https://dlang.org/":3, "https://www.google.com/":7, "https://www.reddit.com/":1]

Meta