How to Install and Uninstall python3-arsenic Package on Kali Linux
Last updated: December 25,2024
1. Install "python3-arsenic" package
Please follow the steps below to install python3-arsenic on Kali Linux
$
sudo apt update
Copied
$
sudo apt install
python3-arsenic
Copied
2. Uninstall "python3-arsenic" package
Here is a brief guide to show you how to uninstall python3-arsenic on Kali Linux:
$
sudo apt remove
python3-arsenic
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the python3-arsenic package on Kali Linux
Package: python3-arsenic
Source: arsenic
Version: 21.8-2
Installed-Size: 78
Maintainer: Gianfranco Costamagna
Architecture: all
Depends: python3-aiohttp, python3-attr, python3-structlog, python3:any
Size: 15648
SHA256: 94c1a365c936f9d22088fb2a91326fcb5f9475d9d4db85e90161c03bdd401d60
SHA1: f5566dab4af2be615726cdec20a009b0b51c4a2f
MD5sum: 8bc79f4757800bbd136744ac6e0b3e55
Description: Asynchronous WebDriver client
Asynchronous webdriver client built on asyncio.
.
Let's run a local Firefox instance.
.
from arsenic import get_session
from arsenic.browsers import Firefox
from arsenic.services import Geckodriver
.
.
async def example():
# Runs geckodriver and starts a firefox session
async with get_session(Geckodriver(), Firefox()) as session:
# go to example.com
await session.get('http://example.com')
# wait up to 5 seconds to get the h1 element from the page
h1 = await session.wait_for_element(5, 'h1')
# print the text of the h1 element
print(await h1.get_text())
.
Alternatively also other drivers can be run, e.g.
Chromedriver or MSEdgeDriver
Description-md5:
Homepage: https://github.com/HDE/arsenic
Section: python
Priority: optional
Filename: pool/main/a/arsenic/python3-arsenic_21.8-2_all.deb
Source: arsenic
Version: 21.8-2
Installed-Size: 78
Maintainer: Gianfranco Costamagna
Architecture: all
Depends: python3-aiohttp, python3-attr, python3-structlog, python3:any
Size: 15648
SHA256: 94c1a365c936f9d22088fb2a91326fcb5f9475d9d4db85e90161c03bdd401d60
SHA1: f5566dab4af2be615726cdec20a009b0b51c4a2f
MD5sum: 8bc79f4757800bbd136744ac6e0b3e55
Description: Asynchronous WebDriver client
Asynchronous webdriver client built on asyncio.
.
Let's run a local Firefox instance.
.
from arsenic import get_session
from arsenic.browsers import Firefox
from arsenic.services import Geckodriver
.
.
async def example():
# Runs geckodriver and starts a firefox session
async with get_session(Geckodriver(), Firefox()) as session:
# go to example.com
await session.get('http://example.com')
# wait up to 5 seconds to get the h1 element from the page
h1 = await session.wait_for_element(5, 'h1')
# print the text of the h1 element
print(await h1.get_text())
.
Alternatively also other drivers can be run, e.g.
Chromedriver or MSEdgeDriver
Description-md5:
Homepage: https://github.com/HDE/arsenic
Section: python
Priority: optional
Filename: pool/main/a/arsenic/python3-arsenic_21.8-2_all.deb