{"id":23402611,"url":"https://github.com/martincastroalvarez/python-web-crawler","last_synced_at":"2025-04-08T22:23:10.797Z","repository":{"id":106553459,"uuid":"192785862","full_name":"MartinCastroAlvarez/python-web-crawler","owner":"MartinCastroAlvarez","description":"Web Crawler in Python","archived":false,"fork":false,"pushed_at":"2022-04-04T10:58:47.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T17:31:35.272Z","etag":null,"topics":["probabilistic-programming","python3","web-crawling","web-scraping"],"latest_commit_sha":null,"homepage":"https://martincastroalvarez.com","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MartinCastroAlvarez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-06-19T18:39:03.000Z","updated_at":"2022-04-04T11:06:22.000Z","dependencies_parsed_at":"2023-07-16T02:15:29.679Z","dependency_job_id":null,"html_url":"https://github.com/MartinCastroAlvarez/python-web-crawler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Fpython-web-crawler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Fpython-web-crawler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Fpython-web-crawler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Fpython-web-crawler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MartinCastroAlvarez","download_url":"https://codeload.github.com/MartinCastroAlvarez/python-web-crawler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247935832,"owners_count":21020899,"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","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":["probabilistic-programming","python3","web-crawling","web-scraping"],"created_at":"2024-12-22T12:29:42.778Z","updated_at":"2025-04-08T22:23:10.776Z","avatar_url":"https://github.com/MartinCastroAlvarez.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Probabilistic Web Crawler\n\n### Installation:\n```\nvirtualenv -p python3 env\nsource env/bin/activate\npip install lxml\n```\n\n### Usage:\n##### Find element in all variants:\n```\npython3 crawl.py train/sample-0-origin.html test/sample-1-evil-gemini.html test/sample-2-container-and-clone.html test/sample-3-the-escape.html  test/sample-4-the-mash.html \"make-everything-ok-button\"\n```\nExpected output:\n```\n'body/div/div/div[3]/div[1]/div/div[2]/a[2]' (score=0.9921029164925812)\n'body/div/div/div[3]/div[1]/div/div[2]/div/a' (score=0.9952613484261197)\n'body/div/div/div[3]/div[1]/div/div[3]/a' (score=0.989535451948429)\n'body/div/div/div[3]/div[1]/div/div[3]/a' (score=0.9940386760307208)\n```\n\n##### Find element in one variant:\n```\npython3 crawl.py train/sample-0-origin.html test/sample-1-evil-gemini.html make-everything-ok-button\n```\nExpected output:\n```\n'body/div/div/div[3]/div[1]/div/div[2]/a[2]' (score=0.9921029164925812)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartincastroalvarez%2Fpython-web-crawler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartincastroalvarez%2Fpython-web-crawler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartincastroalvarez%2Fpython-web-crawler/lists"}