{"id":22957061,"url":"https://github.com/kenmwaura1/simple-web-scraper","last_synced_at":"2025-08-13T03:32:53.189Z","repository":{"id":38182285,"uuid":"238519770","full_name":"KenMwaura1/simple-web-scraper","owner":"KenMwaura1","description":"Simple web scraper to get player data using beatiful-soup4 and PostgreSQL as a database. SQLAlchemy as an ORM","archived":false,"fork":false,"pushed_at":"2025-08-04T02:42:00.000Z","size":669,"stargazers_count":9,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-07T21:07:44.562Z","etag":null,"topics":["beautifulsoup4","postgres","postgresql","python","requests","scraper","sqlalchemy"],"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/KenMwaura1.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,"zenodo":null}},"created_at":"2020-02-05T18:27:17.000Z","updated_at":"2025-07-23T20:23:38.000Z","dependencies_parsed_at":"2023-10-12T14:55:21.437Z","dependency_job_id":"5279e717-053b-43b0-8fa8-2e418e464ef5","html_url":"https://github.com/KenMwaura1/simple-web-scraper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KenMwaura1/simple-web-scraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenMwaura1%2Fsimple-web-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenMwaura1%2Fsimple-web-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenMwaura1%2Fsimple-web-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenMwaura1%2Fsimple-web-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KenMwaura1","download_url":"https://codeload.github.com/KenMwaura1/simple-web-scraper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenMwaura1%2Fsimple-web-scraper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270175826,"owners_count":24540093,"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-08-13T02:00:09.904Z","response_time":66,"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":["beautifulsoup4","postgres","postgresql","python","requests","scraper","sqlalchemy"],"created_at":"2024-12-14T17:15:10.617Z","updated_at":"2025-08-13T03:32:52.865Z","avatar_url":"https://github.com/KenMwaura1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-web-scraper\n\n![Python package](https://github.com/KenMwaura1/simple-web-scraper/workflows/Python%20package/badge.svg)\n\nThis repository contains code for a webscraper for [Lifetime Leaderboards \\| UMG Gaming](https://www.umggaming.com/leaderboards)\nMaking use of the beatifulsoup4 and requests\nPostgres as a Database\nSQLAlchemy is used as a ORM to insert data into the db\n\n## Accompanying Blog Post\n\n[Get Started with a Web Scraping Project](https://dev.to/ken_mwaura1/getting-started-with-a-web-scraping-project-10ej)\n\n## Installation\n\n1. Clone this Repo\n\n`git clone https://github.com/KenMwaura1/simple-web-scraper`\n\n2. Change into into the simple-web-scraper folder\n\n`cd simple-web-scraper`\n\n3. Create a virtualenv\n\n`python3 -m virtualenv env`\n\n4. Activate virtualenv\n\n`source /bin/activate` OR use pipenv `pipenv install`\n\n5. Install the required dependecies\n\n`python3 -m pip install -r requirements.txt`\n\n## Database\n\nEnsure Postgres is installed locally and running on port 5432\n\nOR\n\nrun a Postgres container on Docker [Easy PostgreSQL 10 and pgAdmin 4 Setup with Docker](https://info.crunchydata.com/blog/easy-postgresql-10-and-pgadmin-4-setup-with-docker) container on port 5432\n\nThe default db credentials are:\n\n* host: localhost\n* port: 5432\n* user: test\n* db: xp_db\n* password: testpassword\n\nOptionally can also set the db credentials as environment variables\n\n```shell\nexport DATABASE_URL='postgres://test:testpassword@localhost:5432/xp_db'\n```\n\nor copy the included .env example file\n\n```shell\ncp .env.example .env\n```\n\nAdd your credentials to the .env file.\n\n## Usage\n\n1.Run the scraper\n\n  1a. To run the scraper and insert xp data into the db\n\n  ```shell\n  python xp_scrape.py\n  ```\n\n  1b. To run the scraper and insert earnings data into the db\n\n  ```shell\n  python earnings_scrape.py\n```\n\n## Tests\n\nTo run the tests run the following command at the root of the project.\n\n```shell\npytest . \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenmwaura1%2Fsimple-web-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenmwaura1%2Fsimple-web-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenmwaura1%2Fsimple-web-scraper/lists"}