{"id":25009170,"url":"https://github.com/augustine-aj/custom-data-collection","last_synced_at":"2025-04-23T17:13:18.332Z","repository":{"id":246918152,"uuid":"824672866","full_name":"augustine-aj/custom-data-collection","owner":"augustine-aj","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-23T16:32:56.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T17:13:13.100Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/augustine-aj.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-05T16:49:25.000Z","updated_at":"2025-01-27T09:41:41.000Z","dependencies_parsed_at":"2024-07-05T22:06:06.058Z","dependency_job_id":"38c668f3-d077-4a0e-b340-7098c4bffc2a","html_url":"https://github.com/augustine-aj/custom-data-collection","commit_stats":null,"previous_names":["augustine-aj/custom-data-collection"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augustine-aj%2Fcustom-data-collection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augustine-aj%2Fcustom-data-collection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augustine-aj%2Fcustom-data-collection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augustine-aj%2Fcustom-data-collection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/augustine-aj","download_url":"https://codeload.github.com/augustine-aj/custom-data-collection/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250477810,"owners_count":21437049,"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":[],"created_at":"2025-02-05T04:12:38.390Z","updated_at":"2025-04-23T17:13:18.313Z","avatar_url":"https://github.com/augustine-aj.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# custom-data-collection\n\n# Flipkart Review Scraper\n\n## Overview\nThis project is a web scraping tool that extracts customer reviews from Flipkart product pages using Selenium and XPath. The scraped data includes customer ratings, review titles, review text, reviewer names, locations, and likes/dislikes. The extracted information is stored in a CSV file for further analysis.\n\n## Features\n- Scrapes customer reviews and related data from Flipkart.\n- Uses XPath to locate elements on the page.\n- Supports pagination to scrape multiple pages of reviews.\n- Saves the collected data into a CSV file.\n\n## Technologies Used\n- **Python**: Programming language used for the scraper.\n- **Selenium**: For browser automation and web scraping.\n- **Pandas**: For data handling and exporting to CSV.\n- **XPath**: For navigating the HTML structure of the Flipkart page.\n\n## Getting Started\n\n### Prerequisites\n- **Python 3.x** must be installed on your system.\n- **ChromeDriver** should match your Chrome browser version. Download it from [ChromeDriver Download](https://sites.google.com/chromium.org/driver/) and place the path in the script.\n\n## How It Works\n- **Browse the Website**: The script opens the specified Flipkart product review page.\n- **Get Elements**: It retrieves reviews using pre-defined XPath for various elements like ratings, review titles, and text.\n- **Pagination**: The script automatically navigates to the next page of reviews.\n- **Simulate Clicks**: It can simulate user actions to expand additional review details if needed.\n- **Save to CSV**: All the collected data is saved into `review_data.csv`.\n\n## Example Output\nThe output will be stored in `review_data.csv` with columns such as:\n- `customer_rating`\n- `customer_reviewTitle`\n- `customer_review`\n- `customer_name`\n- `customer_place`\n- `customer_postedDate`\n- `customer_reviewLikes`\n- `customer_reviewDislikes`\n\n## Future Improvements\n- Handle dynamic loading of reviews more robustly.\n- Extract additional data points, such as images or verified purchase statuses.\n- Enhance error handling and logging mechanisms.\n\n## License\nThis project is licensed under the MIT License.\n\n## Acknowledgments\n- Thanks to the Selenium community for their invaluable resources and support.\n- Flipkart for providing publicly accessible review data.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faugustine-aj%2Fcustom-data-collection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faugustine-aj%2Fcustom-data-collection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faugustine-aj%2Fcustom-data-collection/lists"}