web_browser_history

Get web browser history with the D programming language

Home page: https://github.com/workhorsy/d-web-browser-history

Members

Enums

WebBrowser
enum WebBrowser

The supported web browsers.

Functions

getInstalledBrowsers
WebBrowser[] getInstalledBrowsers()

Returns an array of installed web browsers.

readHistory
void readHistory(WebBrowser browser, void delegate(string url, int visit_count) each_row_cb)

Reads all the history for the selected web browser.

readHistoryAll
void readHistoryAll(void delegate(string url, int visit_count) each_row_cb)

Reads all the history for all the web browsers.

Examples

1 import web_browser_history;
2 import std.stdio : stdout;
3 import derelict.sqlite3.sqlite : DerelictSQLite3;
4 
5 DerelictSQLite3.load();
6 
7 foreach (browser ; web_browser_history.getInstalledBrowsers()) {
8 	web_browser_history.readHistory(browser, delegate(string url, int visit_count) {
9 		stdout.writefln("browser:%s, url:%s, count:%s", browser, url, visit_count);
10 	});
11 }

Meta

Version

1.2.0

License

Boost Software License - Version 1.0