import std.stdio, std.exception, std.regex, std.algorithm, std.string, std.net.curl; struct YahooResult { string url, title, content; string toString() const { return "\nTitle: %s\nLink: %s\nText: %s" .format(title, url, content); } } struct YahooSearch { private string query, content; private uint page; this(in string query_, in uint page_ = 0) { this.query = query_; this.page = page_; this.content = "http://search.yahoo.com/search?p=%s&b=%d" .format(query, page * 10 + 1).get.assumeUnique; } @property results() const { immutable re = `