{"id":21327960,"url":"https://github.com/shubhamagrawal1507/playwright-datascraping-validation","last_synced_at":"2026-01-02T23:05:45.497Z","repository":{"id":247052921,"uuid":"824906058","full_name":"shubhamagrawal1507/playwright-datascraping-validation","owner":"shubhamagrawal1507","description":"This project is a web scraping and data validation tool built with Playwright, pytest, and pandas. It scrapes country data (such as names, capitals, and currencies) from a specified website and validates it against expected results. The project follows the Page Object Model (POM) design pattern for better maintainability and readability.","archived":false,"fork":false,"pushed_at":"2024-07-06T09:38:18.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T12:46:17.025Z","etag":null,"topics":["data-scraper-framework","data-validation","page-object-model","playwright-python","pytest","pytest-html"],"latest_commit_sha":null,"homepage":"","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/shubhamagrawal1507.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":"2024-07-06T09:07:07.000Z","updated_at":"2024-07-06T09:40:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"eecd7ece-2e40-4592-acb3-8cf248a53e65","html_url":"https://github.com/shubhamagrawal1507/playwright-datascraping-validation","commit_stats":null,"previous_names":["shubhamagrawal1507/playwright-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamagrawal1507%2Fplaywright-datascraping-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamagrawal1507%2Fplaywright-datascraping-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamagrawal1507%2Fplaywright-datascraping-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamagrawal1507%2Fplaywright-datascraping-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shubhamagrawal1507","download_url":"https://codeload.github.com/shubhamagrawal1507/playwright-datascraping-validation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806087,"owners_count":20350775,"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":["data-scraper-framework","data-validation","page-object-model","playwright-python","pytest","pytest-html"],"created_at":"2024-11-21T21:21:10.277Z","updated_at":"2026-01-02T23:05:45.479Z","avatar_url":"https://github.com/shubhamagrawal1507.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playwright Country Data Scraper and Validator\r\n\r\n## Description\r\n\r\nThis project is a web scraping and data validation tool built with Playwright, pytest, and pandas. It scrapes country data (such as names, capitals, and currencies) from a specified website and validates it against expected results. The project follows the Page Object Model (POM) design pattern for better maintainability and readability.\r\n\r\n## Features\r\n\r\n- Scrapes country data from a website\r\n- Validates scraped data against expected results stored in a CSV file\r\n- Generates detailed HTML test reports using pytest-html\r\n- Automatically reruns failed tests to ensure robustness\r\n\r\n## Project Structure\r\n\r\ncountry_scraper/\r\n│\r\n├── data/\r\n│ ├── expected_results.csv # Expected data for validation\r\n│ └── scraped_data.csv # Scraped data from the website\r\n│\r\n├── pages/\r\n│ └── country_page.py # Page Object Model for the country data page\r\n│\r\n├── reports/\r\n│ └── test_report.html # HTML test report\r\n│\r\n├── tests/\r\n│ └── test_country_data.py # Test script for scraping and validation\r\n│\r\n├── src/\r\n│ ├── data_loader.py # Utility functions for loading and saving data\r\n│ └── validation.py # Utility functions for data validation\r\n│\r\n├── README.md # Project documentation\r\n|\r\n├── requirements.txt # List of Python dependencies\r\n|\r\n└── pytest.ini # Pytest configuration file\r\n\r\n\r\n\r\n## Installation\r\n\r\n-Clone the repository:\r\n   git clone https://github.com/shubhamagrawal1507/playwright-datascraping-validation.git\r\n\r\n-Install the dependencies:\r\n\r\n    pip install -r requirements.txt\r\n    playwright install\r\n\r\n## Usage\r\n\r\n-Run the tests:\r\n    python -m pytest\r\n\r\n-View the HTML report:\r\n    After running the tests, open reports/test_report.html in your web browser to view the detailed test report.\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhamagrawal1507%2Fplaywright-datascraping-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshubhamagrawal1507%2Fplaywright-datascraping-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhamagrawal1507%2Fplaywright-datascraping-validation/lists"}