{"id":30742291,"url":"https://github.com/itbanque/talk2dom-python","last_synced_at":"2025-09-04T01:41:41.849Z","repository":{"id":307407563,"uuid":"1029396895","full_name":"itbanque/talk2dom-python","owner":"itbanque","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-01T02:57:19.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-01T03:40:31.707Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itbanque.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-31T01:53:28.000Z","updated_at":"2025-09-01T02:45:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa79506b-116b-4510-bdfb-01c33cf4fcf8","html_url":"https://github.com/itbanque/talk2dom-python","commit_stats":null,"previous_names":["itbanque/talk2dom-selenium","itbanque/talk2dom-python"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/itbanque/talk2dom-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itbanque%2Ftalk2dom-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itbanque%2Ftalk2dom-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itbanque%2Ftalk2dom-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itbanque%2Ftalk2dom-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itbanque","download_url":"https://codeload.github.com/itbanque/talk2dom-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itbanque%2Ftalk2dom-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273406823,"owners_count":25099913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-04T01:41:40.991Z","updated_at":"2025-09-04T01:41:41.837Z","avatar_url":"https://github.com/itbanque.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Talk2Dom Python SDK\n\n![PyPI](https://img.shields.io/pypi/v/talk2dom)\n[![PyPI Downloads](https://static.pepy.tech/badge/talk2dom)](https://pepy.tech/projects/talk2dom)\n![Stars](https://img.shields.io/github/stars/itbanque/talk2dom-selenium?style=social)\n![License](https://img.shields.io/github/license/itbanque/talk2dom-selenium)\n![CI](https://github.com/itbanque/talk2dom-selenium/actions/workflows/test.yaml/badge.svg)\n\nMinimal client SDK to call the Talk2Dom API.\n\n## Install\n```bash\npip install talk2dom\n# optional\npip install \"talk2dom[selenium]\"\n# or\npip install \"talk2dom[playwright]\"\n```\n\n```python\n## Quiack Start\nfrom talk2dom import Talk2DomClient\n\nclient = Talk2DomClient(\n  api_key=\"YOUR_API_KEY\",\n  project_id=\"YOUR_PROJECT_ID\",\n)\n\n# sync example\nres = client.locate(\"click the primary login button\", html=\"\u003chtml\u003e...\u003c/html\u003e\", url=\"https://example.com\")\n\n# async exmaple\nres = client.alocate(\"click the primary login button\", html=\"\u003chtml\u003e...\u003c/html\u003e\", url=\"https://example.com\")\n```\n\n## Environment variables\n- T2D_API_KEY\n- T2D_PROJECT_ID\n- T2D_ENDPOINT (optional; defaults to https://api.talk2dom.itbanque.com)\n\n## Selenium ActionChains\n\n```python\nfrom selenium import webdriver\n\nimport time\nfrom talk2dom.selenium import ActionChains\n\ndriver = webdriver.Chrome()\n\ndriver.get(\"https://python.org\")\n\nactions = ActionChains(driver)\n\nactions\\\n    .go(\"Type 'pycon' in the search box\")\\\n    .go(\"Click the 'go' button\")\n\ntime.sleep(2)\n\n```\n\n## Playwright PageNavigator\n\n```python\nfrom playwright.sync_api import sync_playwright\nfrom talk2dom.playwright import PageNavigator\n\n\ndef main():\n    with sync_playwright() as p:\n        # Launch Chromium browser\n        browser = p.chromium.launch(headless=False)\n        page = browser.new_page()\n\n        navigator = PageNavigator(page)\n\n        # Navigate to python.org\n        page.goto(\"https://www.python.org\")\n\n        navigator.go(\"Type 'pycon' in the search box\")\n\n        navigator.go(\"Click the 'go' button\")\n\n        # Wait for results to load\n        page.wait_for_timeout(3000)\n\n        # Close the browser\n        browser.close()\n\n\nif __name__ == \"__main__\":\n    main()\n\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitbanque%2Ftalk2dom-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitbanque%2Ftalk2dom-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitbanque%2Ftalk2dom-python/lists"}