Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- blob:https://web.whatsapp.com/3565e574-b363-4aca-85cd-2d84aa715c39
- URLError: <urlopen error unknown url type: blob>
- InvalidSchema: No connection adapters were found for 'blob:https://web.whatsapp.com/f50eac63-6a7f-48a4-a2b8-8558a9ffe015'
- import requests
- url = 'https://web.whatsapp.com/f50eac63-6a7f-48a4-a2b8-8558a9ffe015'
- fileName = 'test.png'
- req = requests.get(url)
- file = open(fileName, 'wb')
- for chunk in req.iter_content(100000):
- file.write(chunk)
- file.close()
- var reader = new FileReader();
- reader.addEventListener("loadend", function() {
- // reader.result contains the contents of blob as a typed array
- });
- reader.readAsArrayBuffer(blob);
Add Comment
Please, Sign In to add comment