Ichrome

Latest version: v3.2.0

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

Scan your dependencies

Page 1 of 11

3.2.0

- add Tab.info, Tab.get_info, Tab.new_tab, Tab.browserContextId, Tab.get_targets

`Tab.new_tab demo`

python
import asyncio

from ichrome import AsyncChromeDaemon


async def main():
async with AsyncChromeDaemon(headless=False, disable_image=True) as cd:
async with cd.incognito_tab() as tab:
url = 'http://www.bing.com/'
await tab.goto(url, timeout=3)
MUIDB = (await tab.get_cookies_dict([url])).get('MUIDB')
new_tab = await tab.new_tab()
tab_exist = bool(await tab.chrome.get_tab(new_tab.tab_id))
assert tab_exist
async with new_tab(auto_close=True) as tab:
same context, so same cookie
MUIDB2 = (await tab.get_cookies_dict([url])).get('MUIDB')
print(MUIDB, MUIDB2, MUIDB == MUIDB2)
assert MUIDB == MUIDB2
the new_tab auto closed
tab_exist = bool(await tab.chrome.get_tab(new_tab.tab_id))
assert not tab_exist


asyncio.run(main())

3.1.1

- fix missing tab0 while start_url is null, now default start_url is "about:blank"
- add `ChromeDaemon.cleanup_launched_pids` to atexit to kill all the chrome processes which `ichrome` launched.
- kill the chrome processed which not exiting
- update `tab.iter_fetch` methods
- now `tab.iter_fetch` will contain `networkId` to get response body while `requestStage` is `Response`.
- add `get_response` for events
- add `match_event` to filt the events with RequestPattern
- new version chrome forbidden `GET` method towards `/json/new` fixed 123

3.1.0

- add tab.scrollIntoView
- Merge pull request 118 from why2lyj/master
- add tab.set_geolocation_override
- EventBuffer.events type add Dict[str, Callable], Bind different callback functions for different events

3.0.9

- fix 111 daemon block issue
- add dispatchKeyEvent doc
- add check_ws_ready to AsyncTab.ok
- fix 113 tab.querySelectorAll raise IndexError
- add tab.pass_auth_proxy for auth proxy fix 86 41 80 https://clericpy.github.io/ichrome/reference/AsyncTab/#ichrome.async_utils.AsyncTab.pass_auth_proxy

3.0.7

- add edge path for linux mac
- add Tab._default_recv_callback for sync_utils

3.0.4

- add Daemon._iter_chrome_path
- fix http preview bad encoding
- CTRL-C can not stop daemons of ChromeWorkers fix 95

Page 1 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.