A capture moudle return base64 image
Project description
A capture moudle return base64 image
Install
pip install Vulncapture
Use
from Vulncapture import Vulncapture
import base64
image=Vulncapture.run_snapshot(url='http://www.baidu.com',keyword='换一换')
'''
run_snapshot() parmers
url : aim url
keyword : str
headers : dict
method : str('GET'/'POST')
if your aim url need to login , please set headers
auto set cookies
auto jump dialog and record dialog
auto stop jump to other domain
'''
print(image) # str
imgdata=base64.b64decode(image)
file=open('1.jpg','wb')
file.write(imgdata)
file.close()
imgdata2= Vulncapture.txt2image(data = 'it's password for me',keyword ='password')
print(imgdata2)
imgdata=base64.b64decode(imgdata2)
file=open('2.jpg','wb')
file.write(imgdata)
file.close()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Vulncapture-1.0.2.tar.gz
(9.2 MB
view hashes)
Built Distribution
Close
Hashes for Vulncapture-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0767c47495de6a35c913c91a0958a32bb9daec60a4850dec82b81b9adc198eac |
|
MD5 | 24a01552c3bf062bb607637fadb1b78d |
|
BLAKE2b-256 | 4fcbcaceeb21b0919ee9366e30529d477e6084c86baa96200f93725a0adf4c9f |