{"id":22320859,"url":"https://github.com/elmoiv/pyads","last_synced_at":"2025-10-25T04:45:44.958Z","repository":{"id":138016233,"uuid":"180184059","full_name":"elmoiv/PyAds","owner":"elmoiv","description":"Simple ad blocker using the hosts file.","archived":false,"fork":false,"pushed_at":"2019-05-13T10:56:34.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T04:41:27.400Z","etag":null,"topics":["adblock","adblock-list","adblocker","adblocking","ads","advertisement","advertising","blocker","hosts","hostsfile"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elmoiv.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}},"created_at":"2019-04-08T15:57:41.000Z","updated_at":"2022-02-07T04:50:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"e6a16423-6beb-436e-937f-29fb698146ee","html_url":"https://github.com/elmoiv/PyAds","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elmoiv/PyAds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elmoiv%2FPyAds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elmoiv%2FPyAds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elmoiv%2FPyAds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elmoiv%2FPyAds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elmoiv","download_url":"https://codeload.github.com/elmoiv/PyAds/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elmoiv%2FPyAds/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280906488,"owners_count":26411412,"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-10-25T02:00:06.499Z","response_time":81,"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":["adblock","adblock-list","adblocker","adblocking","ads","advertisement","advertising","blocker","hosts","hostsfile"],"created_at":"2024-12-04T00:15:01.724Z","updated_at":"2025-10-25T04:45:44.916Z","avatar_url":"https://github.com/elmoiv.png","language":"Python","readme":"# PyAds\nSimple ad blocker using the hosts file.\n\n\n# Features\n- You can block as many ad providers as you want.\n- Your cat can use this code.\n\n# How to Use\n```\nimport pyads\n\nadblock = pyads.Adblock(hostDic, hostSrc)\n\nadblock.parseHosts(adblock.getHosts())\n```\n- _hostDic_ : Location of the system hosts file.\n- _hostSrc_ : List, tuple or set containing urls with hosts raw data _see [test.py](test.py)_.\n\n- if you want to revert the hosts file back:\n```\nadblock.cleanHosts()\n```\n\n\n*MUST RUN THIS SCRIPT WITH ADMIN PRIVILEGES*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felmoiv%2Fpyads","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felmoiv%2Fpyads","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felmoiv%2Fpyads/lists"}