From 45747990238cc708dfa370c8339a21f1aae5439b Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Thu, 24 Mar 2016 01:41:16 +0200 Subject: Update README with basic usage and add .gitignore --- .gitignore | 1 + README.md | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bee8a64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__ diff --git a/README.md b/README.md index 3f98be7..d1f8de4 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,13 @@ A small Python library for decoding .NET viewstate. Can be used in various scraping scenarios. +## Usage + +```python +from viewstate import ViewState +vs = ViewState(base64EncodedViewState) +``` + ## References - https://github.com/mutantzombie/JavaScript-ViewState-Parser -- cgit v1.3.1