Closed pwnedDesal closed 2 years ago
Solved by using CaseInsensitiveDict from requests
from requests.structures import CaseInsensitiveDict
wp = WebPage(url=response['url'], html=response['body'], headers=CaseInsensitiveDict(response['headers']))
wappalyzer = Wappalyzer.latest()
print( wappalyzer.analyze(wp) )
Maybe the headers argument should be automatically converted to CaseInsensitiveDict in WebPage.init().
That would solve the issue for everyone!
Thanks,
@BitTheByte that solved it for me, thanks.
I have already an HTTP response which is from this URL, and I set it into httpResponse variable then call the WebPage class like this
However, the print(wappalyzer.analyze(webpage)) returns an output
set()