Create find.py

This commit is contained in:
witer33 2020-11-02 19:53:31 +01:00 committed by GitHub
parent c5bfedbaed
commit 448194998e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

8
examples/find.py Normal file
View File

@ -0,0 +1,8 @@
import nhtp
import requests
http = nhtp.Engine(requests.get("https://example.com").content)
print(http.find("title").texts[0])
print(http.find("meta", http-equiv="Content-type").args["content"])