You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Python2 deprecation** - This package no longer supports Python2. If you wish to still use it in Python2, you can:
8
-
* Use version 0.3.8
9
-
* Install pyshark-legacy via pypi
10
-
* Clone the pyshark-legacy [repo](https://github.com/KimiNewt/pyshark-legacy), where bugfixes will be applied.
11
-
12
7
**Looking for contributors** - for various reasons I have a hard time finding time to maintain and enhance the package at the moment. Any pull-requests will be reviewed and if any one is interested and is suitable, I will be happy to include them in the project. Feel free to mail me at dorgreen1 at gmail.
13
8
14
9
There are quite a few python packet parsing modules, this one is different because it doesn't actually parse any packets, it simply uses tshark's (wireshark command-line utility) ability to export XMLs to use its parsing.
@@ -18,6 +13,11 @@ Tested on windows/linux.
18
13
19
14
## Installation
20
15
16
+
### Version support
17
+
Python 3.7+ is supported. An unsupported Python 2 version exists as [pyshark-legacy](https://github.com/KimiNewt/pyshark-legacy).
18
+
19
+
Supports all modern versions of tshark / wireshark but certain features may be unavailable on older versions.
20
+
21
21
### All Platforms
22
22
Simply run the following to install the latest from pypi
23
23
```bash
@@ -100,7 +100,7 @@ be either 'WEP', 'WPA-PWD', or 'WPA-PWK'. Defaults to WPA-PWK.
100
100
<UDP/HTTP Packet>
101
101
102
102
for packet in capture.sniff_continuously(packet_count=5):
103
-
print'Just arrived:', packet
103
+
print('Just arrived:', packet)
104
104
```
105
105
106
106
#### Other options
@@ -128,7 +128,7 @@ includes very little information
128
128
<UDP/HTTP Packet>
129
129
130
130
for packet in capture.sniff_continuously(packet_count=5):
131
-
print'Just arrived:', packet
131
+
print('Just arrived:', packet)
132
132
```
133
133
134
134
#### Other options
@@ -208,7 +208,7 @@ Source or Destination Address: 10.0.0.10 (10.0.0.10)
0 commit comments