libweb.regex

RegexService

class libweb.regex.RegexService(creds=None, opts=None, **conf)[source]

An HTTP-based service that is scraped using regular expressions.

Keyword Arguments:
 parse (list) – Regular expressions used to parse data from the service
get_html()[source]

Make the HTTP request(s) and unescape the returned HTML

get_results()[source]

Apply the configured regular expressions to the service’s response

regexes

Compile the regular expressions provided in the configuration