### Installation
```sh
pip install elements-manager
```
### Import
```sh
from elements_manager import get_xpath
```
### Example
Below script searches given keyword on google & scrapes result count
```sh
from selenium.webdriver.common.keys import Keys
from selenium import webdriver
from elements_manager import get_xpath
driver = webdriver.Chrome("chromedriver.exe")
# Open URL
driver.get('https://www.google.com/')
xpath=get_xpath(driver,'QYQyyPtidm5_xqG')
driver.find_element_by_xpath(xpath).click()
# Type in search bar
driver.switch_to.active_element.send_keys('shoes\n')
# Advanced method to scrape result count
xpath=get_xpath(driver,'z6XMV66vxokYpfn')
result_count=driver.find_element_by_xpath(xpath).text
print('result_count ',result_count)
driver.quit()
```
### Contact Us
* [Telegram](https://t.me/datakund)
Raw data
{
"_id": null,
"home_page": "",
"name": "elements-manager",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "selenium no-html web-scraping bots test-automation no-code low-code cloud proxy datakund element-manager selenium element manager",
"author": "Shrikar",
"author_email": "datakund@gmail.com",
"download_url": "",
"platform": null,
"description": "### Installation\r\n```sh\r\npip install elements-manager\r\n```\r\n\r\n### Import\r\n```sh\r\nfrom elements_manager import get_xpath\r\n```\r\n\r\n\r\n### Example\r\nBelow script searches given keyword on google & scrapes result count\r\n```sh\r\nfrom selenium.webdriver.common.keys import Keys\r\nfrom selenium import webdriver\r\nfrom elements_manager import get_xpath\r\n\r\ndriver = webdriver.Chrome(\"chromedriver.exe\")\r\n\r\n# Open URL\r\ndriver.get('https://www.google.com/')\r\n\r\nxpath=get_xpath(driver,'QYQyyPtidm5_xqG')\r\ndriver.find_element_by_xpath(xpath).click()\r\n\r\n# Type in search bar\r\ndriver.switch_to.active_element.send_keys('shoes\\n')\r\n\r\n# Advanced method to scrape result count\r\nxpath=get_xpath(driver,'z6XMV66vxokYpfn')\r\nresult_count=driver.find_element_by_xpath(xpath).text\r\nprint('result_count ',result_count)\r\ndriver.quit()\r\n\r\n```\r\n\r\n\r\n### Contact Us\r\n* [Telegram](https://t.me/datakund)\r\n\r\n",
"bugtrack_url": null,
"license": "Apache License 2.0",
"summary": "Selenium Element Finder Library",
"version": "1.0.2",
"project_urls": null,
"split_keywords": [
"selenium",
"no-html",
"web-scraping",
"bots",
"test-automation",
"no-code",
"low-code",
"cloud",
"proxy",
"datakund",
"element-manager",
"selenium",
"element",
"manager"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4272ebf4790b4df22c06490c07e43df59172537daddfffa9eff0b19c689162e2",
"md5": "92c1f0002a9cd04d85ce347b0eb080de",
"sha256": "4e2f7e1ad7f100617683b17097b2f237d3f6bd671f712352d8ba51622f0f2b24"
},
"downloads": -1,
"filename": "elements_manager-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "92c1f0002a9cd04d85ce347b0eb080de",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 9827,
"upload_time": "2024-02-20T10:27:36",
"upload_time_iso_8601": "2024-02-20T10:27:36.181222Z",
"url": "https://files.pythonhosted.org/packages/42/72/ebf4790b4df22c06490c07e43df59172537daddfffa9eff0b19c689162e2/elements_manager-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-20 10:27:36",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "elements-manager"
}