- 💬 Ask me about anything
- 📫 How to reach me: @marinkopeso
marinko-peso / haveibeenpwned Goto Github PK
View Code? Open in Web Editor NEW:snake: PyPi quick status implementation for the awesome haveibeenpwned service
License: MIT License
:snake: PyPi quick status implementation for the awesome haveibeenpwned service
License: MIT License
I've tried to dumb it down to the most basic use case, and I am getting an error. The error is:
Traceback (most recent call last):
File "C:\Users\redacted\PycharmProjects\PyPiHaveIBeenPwned\main.py", line 3, in
pwneddic=pwned_full(email)
File "C:\Users\redacted\PycharmProjects\PyPiHaveIBeenPwned\venv\lib\site-packages\haveibeenpwned\status.py", line 38, in pwned_full
data = json.loads(response.data)
File "C:\Users\redacted\AppData\Local\Programs\Python\Python39\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\redacted\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\redacted\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The code is:
from haveibeenpwned import pwned_full
email = '[email protected]'
pwnedic=pwned_full(email)
Best I can tell, the pwned_full funtion is choking on the response from the haveibeenpwned API, finding something that isn't interpreted as JSON perhaps.
'This version of the API has been discontinued, please use V3: https://www.troyhunt.com/authentication-and-the-have-i-been-pwned-api/'
I'll see if I can make an PR if someone else doesn't do it first.
Ah, it is now a paid API because of abuse of the free API. Fixing this will cost $3.50 a month and then using it will also cost users $3.50 a month.
https://www.troyhunt.com/authentication-and-the-have-i-been-pwned-api/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.