1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| $ py -m pip install mechanize
Collecting mechanize
Downloading mechanize-0.4.7-py2.py3-none-any.whl (109 kB)
|████████████████████████████████| 109 kB 656 kB/s
Collecting html5lib>=0.999999999
Downloading html5lib-1.1-py2.py3-none-any.whl (112 kB)
|████████████████████████████████| 112 kB 819 kB/s
Collecting webencodings
Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: six>=1.9 in c:\py_env\py_39\lib\site-packages (from html5lib>=0.999999999->mechanize) (1.16.0)
Installing collected packages: webencodings, html5lib, mechanize
Successfully installed html5lib-1.1 mechanize-0.4.7 webencodings-0.5.1
$ py
Python 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from mechanize import Browser
>>> |
Partager