Posts: 1,298
Threads: 38
Joined: Sep 2016
I do not understand why you are so determined to make an outdated, non-maintained script based on an old version of Python when there are more up to date solutions. Even correcting the problem of calling beautifulsoup is no guarantee that you will not encounter multiple other problems, which I'm sure you will. If you are that interested in packet sniffing, why not just install Kali Linux, which comes with numerous network tools, and be done with it.
It is apparent that you are unable to determine your problem even though the error reports are telling you specifically what the problem is and what other members are telling you. To me, continuation of this thread is just in exercise in futility for we are certainly
not going to go through each line of code with you, nor are we going to rewrite the code.
If you wish to continue trying to make this code work, more power to you, but I strongly urge you to first learn the basics of the Python language before you proceed.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition