{"id":19756262,"url":"https://github.com/ygalvao/bra_scraper_2022","last_synced_at":"2026-05-12T08:32:33.535Z","repository":{"id":162184401,"uuid":"586644374","full_name":"ygalvao/BRA_Scraper_2022","owner":"ygalvao","description":"A web scraper bot for the 2nd round of the 2022 Brazilian Federal Elections.","archived":false,"fork":false,"pushed_at":"2023-05-17T21:39:24.000Z","size":8421,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T21:02:54.081Z","etag":null,"topics":["data-analysis","data-analytics","selenium","web-scraper","webscraper"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ygalvao.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":"2023-01-08T20:58:14.000Z","updated_at":"2023-11-06T01:55:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c0c5218-f60a-46f2-b2c8-31dd1a803a3a","html_url":"https://github.com/ygalvao/BRA_Scraper_2022","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ygalvao/BRA_Scraper_2022","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ygalvao%2FBRA_Scraper_2022","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ygalvao%2FBRA_Scraper_2022/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ygalvao%2FBRA_Scraper_2022/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ygalvao%2FBRA_Scraper_2022/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ygalvao","download_url":"https://codeload.github.com/ygalvao/BRA_Scraper_2022/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ygalvao%2FBRA_Scraper_2022/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32930518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-11T17:09:15.040Z","status":"online","status_checked_at":"2026-05-12T02:00:06.338Z","response_time":102,"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":["data-analysis","data-analytics","selenium","web-scraper","webscraper"],"created_at":"2024-11-12T03:15:22.152Z","updated_at":"2026-05-12T08:32:33.521Z","avatar_url":"https://github.com/ygalvao.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BRA Scraper 2022\n\nBRA Scraper 2022 is a web scraper designed to download election data from the 2022 Brazilian Federal Elections (2nd round). It specifically targets the Registro Digital de Votos (RDV), Boletim de Urna (BU), and logs of the Electronic Voting Machines (EVMs) for a specified state in Brazil.\n\n## Requirements\n\n- Python 3.8 or later\n- Mozilla Firefox\n- GeckoDriver\n\n## Installation\n\n1. Install the required Python packages:\n\n```\npip install -r requirements.txt\n```\n\n2. Download the [GeckoDriver](https://github.com/mozilla/geckodriver/releases) that matches your Mozilla Firefox version and add it to your system's PATH.\n\n## Usage\n\nRun the scraper using the following command:\n\n```\npython web_scraper.py\n```\n\n### Command-line arguments\n\nYou can pass the following command-line arguments to configure the scraper's behavior during execution:\n\n1. `--show-browser`: If present, the browser will be visible during the scraping process (not headless).\n2. `--headless`: If present, the browser will be hidden (headless) during the scraping process. This argument is ignored if `--show-browser` is also present.\n3. `--reverse`: If present, the order of the municipalities will be reversed during the scraping process.\n4. `--scope`: If present, it should be followed by the desired scope value (e.g., `--scope Rio de Janeiro`). If not present, the user will be prompted to enter the desired scope.\n5. `--yes_for_all`: If present, it will automatically assume a \"yes\" response for all confirmation prompts, causing the \"confirm\" function in \"basic_functions.py\" to return \"True\" every time it is called.\n\nExample usage with command-line arguments:\n\n```\npython web_scraper.py --scope \"Rio de Janeiro\" --yes-for-all\n```\nor\n\n```\npython web_scraper.py --headless --reverse --scope \"Rio de Janeiro\"\n```\n\nWith these command-line arguments, users have the flexibility to configure the scraper's behavior during execution, such as choosing between a headless or visible browser, reversing the order of municipalities, setting the desired scope, and bypassing confirmation prompts by automatically assuming \"yes\" for all.\n\n## License\n\nThis project is licensed under the MIT License. Check the LICENSE file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fygalvao%2Fbra_scraper_2022","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fygalvao%2Fbra_scraper_2022","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fygalvao%2Fbra_scraper_2022/lists"}