Welcome to wap’s documentation!

Library to parse wappalyzer technologies.json and extracts matches from HTTP responses.

The following examples shows how to use it in conjuction with requests and bs4 in order to get the technologies of “https://www.github.com”:

import requests
import wap


technologies, categories = wap.load_file("technologies.json")
resp = requests.get("https://www.github.com")
techno_matches = wap.discover_requests_technologies(technologies, resp)

for t in techno_matches:
    fields = [t.technology.name]
    fields.append(t.version)
    fields.append(str(t.confidence))

    fields.append(",".join(
        [c.name for c in t.technology.categories]
    ))

    print(" ".join(fields))

 if __name__ == '__main__':
     main()

For more examples, look in the repository examples folder.