Ichrome

Latest version: v4.0.2

Safety actively analyzes 641024 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 10 of 11

2.0.0

- add wait_request; fix wait event not enabled
- add set_html, stop_loading_page, get_request_post_data, get_response_body
- refactor force send and enable; auto enable domain
- set get_data_value as GetValueMixin.get_data_value
- get_data_value's default arg position be after path
- use running loop; use new Requests
- add --clean --clear --workers --doc for cmd usage
- add proc_check_interval arg for ChromeDaemon
- refactor AsyncChromeDaemon
- add on_startup & on_shutdown for Daemon
- fix circular dependency
- add common use cases

1.1.5

fix Page.reload
typo
remove default arg --no-sandbox
`chrome` support getitem from tabs

1.1.4

add goto_history

1.1.3

1.1.2

update extra_config strategy for command line args 15

1.1.1.1

"url": "http://httpbin.org/get?a=1&my_query=OK"
}
</pre></body></html>
'"Herman Melville - Moby-Dick"'
"<html><head><meta name=\"color-scheme\" content=\"light dark\"></head><body><pre style=\"word-wrap: break-word; white-space: pre-wrap;\">{\n \"origin\": \"103.171.177.94\"\n}\n</pre></body></html>"


2. test tab_callback
async def tab_callback(self, tab, data, timeout):
await tab.set_url(data["url"], timeout=timeout)
return (await tab.querySelector("h1")).text


r = requests.post(
"http://127.0.0.1:8009/chrome/do",
json={
"data": {"url": "http://httpbin.org/html"},
"tab_callback": getsource(tab_callback),
"timeout": 10,
},
)
print(repr(r.text), flush=True)
'"Herman Melville - Moby-Dick"'


async def tab_callback(task, tab, data, timeout):
await tab.wait_loading(3)
return await tab.html


3. incognito_args demo
print(
requests.post(
"http://127.0.0.1:8009/chrome/do",
json={
"tab_callback": getsource(tab_callback),
"timeout": 10,
"incognito_args": {
"url": "http://httpbin.org/ip",
"proxyServer": "http://127.0.0.1:1080",
},
},
).text
)
"<html><head><meta name=\"color-scheme\" content=\"light dark\"></head><body><pre style=\"word-wrap: break-word; white-space: pre-wrap;\">{\n \"origin\": \"103.171.177.94\"\n}\n</pre></body></html>"

Page 10 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.