Operations (sample payloads)
Main operationsCopy
Copy
SelectorCopy
Copy
Execute a jQuery style selector on the HTML dom and return certain attributes/properties of the elements in question
Sample Input
1{2"html_content": "<html><body><div class='container'><h1 id='title'>Welcome to My Website</h1><p class='content'>This is a sample paragraph.</p><a href='https://example.com' class='link'>Click here</a></div></body></html>",3"query_selector": "div.container",4"return_properties": {5"attributes": [6"id",7"class"8],9"element_properties": [10"tagName",11"innerHTML"12],13"classes": true,14"html_content": true15}16}
Sample Output
1{2"elements": [3{4"tag": "div",5"attributes": {6"class": "container"7},8"properties": {9"tagName": "DIV",10"innerHTML": "<h1 id='title'>Welcome to My Website</h1><p class='content'>This is a sample paragraph.</p><a href='https://example.com' class='link'>Click here</a>"11},12"classes": [13"container"14],15"html": "<h1 id='title'>Welcome to My Website</h1><p class='content'>This is a sample paragraph.</p><a href='https://example.com' class='link'>Click here</a>"16}17]18}