dmulder / simple_browse

A simple webkit browser written in python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Browser: A simple webkit browser written in Python

positional arguments:
  url

optional arguments:
  -h, --help            show this help message and exit
  --useragent USERAGENT
                        An optional user agent to apply to the main page
  --stylesheet STYLESHEET
                        An optional stylesheet to apply to the main page
  --username USERNAME   A username we'll try to use to sign in
  --password PASSWORD   A password for signing in
  --b64pass B64PASS     An alternative b64 encoded password for sign on
  --forminput FORMINPUT
                        A form field name and value to prefill (seperated by a
                        colon). Only one value for each key is allowed.
  --submit              Submit the filled form when we've finished entering
                        values
  --ignore-submit IGNORE_SUBMIT
                        Ignore the submit if the form contains this key
  --title TITLE         Title for the window
  --notify NOTIFY       A regex search string, base64 encoded, which will
                        display a notification when found, example: <span
                        class="nwItmTxtSbj">([\w ]+)</span>

Example:

./simple_browse.py https://owa.example.com --useragent="Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0" --stylesheet=~/simple_browse/sample_styles/owa_style.css --username=<webmail username> --b64pass="<base64 encoded password>" --forminput=trusted:true --submit --notify=PHNwYW4gY2xhc3M9Im53SXRtVHh0U2JqIj4oW1x3IF0rKTwvc3Bhbj4=

This command will open Outlook Web Access, set the user agent to allow it to 
load using pipelight (for silverlight support), login to webmail, then apply a 
custom css style to make webmail look like a desktop app. When new emails
arrive, notification will be sent to gnome-shell.

About

A simple webkit browser written in python

License:GNU General Public License v2.0


Languages

Language:Python 92.5%Language:CSS 7.5%