mirror of https://github.com/witer33/nhtp.git
Create find.py
This commit is contained in:
parent
c5bfedbaed
commit
448194998e
|
@ -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"])
|
Loading…
Reference in New Issue