summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2016-03-24 01:41:16 +0200
committerYuval Adam <yuval@y3xz.com>2016-03-24 01:41:16 +0200
commit45747990238cc708dfa370c8339a21f1aae5439b (patch)
treec9939228488b3a50d39eda977cd3e922b90d961d
parentbf097ee0d1229d5c89f3e8399efdb1aa45254908 (diff)
Update README with basic usage and add .gitignore
-rw-r--r--.gitignore1
-rw-r--r--README.md7
2 files changed, 8 insertions, 0 deletions
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