Inspector Class - Arshiatmi/kms GitHub Wiki
Welcome To Inspector Class Documentation.
If You Want To Use IG Class You Need To Do That:
import kms
tar = kms.Inspector("target")
tar.[Your Command]
You Can See Commands Right Down There:
get_all(tag_name) : It Will Give You An Array That Contains All Of A Tag In A Website. For Example If You Write
a.get_all("a") It Will Give You An Array That Contains All Page Links.
get_title() : Gives You Title Of Page As An String.
get_source() : Returns You An String That Contains A Readable Source Code Of Page.
get_html_childs() : Returns An Array Of HTML Childs.
- get_text(tag) : If You Want To Remove All Codes And Get Just The Text You Can Use It. If Website Have More Than One It Will Returns You First One.
css_selector(string) : Get Some Tag Into Another Tag. For Example If You Write div a It Will Gives You All Links That Exists In A DIV Tag.