/twclient

Twisted Web Client - Implementation in Python of a web client

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Twisted Web Client

Intro

An implementation of a web client using the Twisted Framework for network application development.

Twisted is an event-driven framework for Python. It uses a reactor event loop as the main part, waiting for events to occur.

Usage

python twclient.py <command> <url>

Commands:

  • cat: Shows the source of the page in the standard output
  • download: Downloads the source of the page in a temporary file and shows the path
  • upload: Uploads a file to a web page using HTTP post and the multipart/form-data encoding

Packages used

  • twisted
  • pyopenssl
  • crypto

Licence

Source code can be found on github, licenced under GPL-3.0.

Developed by Martiño Rivera