Wiki

Clone wiki

Pynav / Home

Pynav documentation

Introduction

Pynav is a Python programmatic web browser to fetch data and test web sites.
Bug reporting and features asking are welcome.
Use the the bug tracker: http://bitbucket.org/sloft/pynav/issues?status=new&status=open
Pynav on pypi : http://pypi.python.org/pypi/pynav/.

Features

  • Post authentication
  • User agent support
  • Automatic cookie handling
  • HTTP Basic Authentication support
  • HTTPS support
  • Proxy support
  • Timeout support
  • Reg exp searching
  • Links fetching with reg exp filter
  • History (pages, posts and responses)
  • Save and load history from a file and replay navigation
  • Random sleep time beetween pages
  • Errors handling
  • Content type filters
  • Dump forms and generate code
  • Check 404 urls
  • Check resource datetime
  • Handle robots.txt

Licence

GNU Lesser General Public License (LGPL)

Installation

Requirements

Minimum Python version: 2.6

Works on Android with ASE

Latest stable version with pip

    $ pip install pynav

Latest stable version with easy_install

    $ easy_install pynav

or a specific version:

    $ easy_install http://bitbucket.org/sloft/pynav/downloads/pynav-0.6.5-py2.6.egg

Latest stable version from tar.gz archive

Download pynav-0.7.tar.gz and extract it:

    $ wget http://bitbucket.org/sloft/pynav/downloads/pynav-0.7.tar.gz
    $ tar xzf pynav-0.7.tar.gz

Go into the extracted directory and run setup.py:

    $ cd pynav-0.7/
    $ python setup.py install

Development version from hg source

$ hg clone https://bitbucket.org/sloft/pynav/
$ hg update Pynav-0.7

Resources

Changelog

Pynav 0.7 changelog

Interactive mode examples

Pynav 0.7 interactive mode examples

FAQ

Pynav 0.7 FAQ

Old documentation

Pynav 0.6 documentation

Updated