{"id":21310082,"url":"https://github.com/bahattincinic/crawler-challenge","last_synced_at":"2026-04-08T20:44:45.681Z","repository":{"id":39153680,"uuid":"256593307","full_name":"bahattincinic/crawler-challenge","owner":"bahattincinic","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-05T19:33:06.000Z","size":5036,"stargazers_count":0,"open_issues_count":23,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-11T08:17:43.578Z","etag":null,"topics":["django","docker","github-actions","mypy","python3","react","unit-testing"],"latest_commit_sha":null,"homepage":null,"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/bahattincinic.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}},"created_at":"2020-04-17T19:36:46.000Z","updated_at":"2024-02-02T22:09:12.000Z","dependencies_parsed_at":"2023-02-04T12:01:51.057Z","dependency_job_id":null,"html_url":"https://github.com/bahattincinic/crawler-challenge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bahattincinic/crawler-challenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahattincinic%2Fcrawler-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahattincinic%2Fcrawler-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahattincinic%2Fcrawler-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahattincinic%2Fcrawler-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahattincinic","download_url":"https://codeload.github.com/bahattincinic/crawler-challenge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahattincinic%2Fcrawler-challenge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31573788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["django","docker","github-actions","mypy","python3","react","unit-testing"],"created_at":"2024-11-21T17:12:21.837Z","updated_at":"2026-04-08T20:44:45.663Z","avatar_url":"https://github.com/bahattincinic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crawler Challenge\n\n## Requirements\n\nBackend:\n\n- Use Python\n- Use Django\n- Use Django Rest Framework in the API layer.\n- Write unit tests\n\nFrontend:\n\n- Use React and Hooks\n- Use Semantic UI React\n- Write unit tests.\n\n## Building the Project (with Docker)\n\nClone the repository\n\n```\n$ git clone git@github.com:bahattincinic/crawler-challenge.git\n$ cd crawler-challenge\n$ cp backend/crawler/settings/dev.py-dist backend/crawler/settings/dev.py\n```\n\nbuild docker images with the following link\n\n```\n$ docker-compose up -d --build\n```\n\nApply Database migrations\n\n```\n$ docker exec -it djangoapp bash\n$ python manage.py migrate\n```\n\nImport data with crawler\n\n```\n$ docker exec -it djangoapp bash\n\n$ python manage.py crawl_products --help\n    usage: manage.py crawl_products [-h] [--category-url CATEGORY_URL] [--version]\n                                [-v {0,1,2,3}] [--settings SETTINGS]\n                                [--pythonpath PYTHONPATH] [--traceback]\n                                [--no-color] [--force-color] [--skip-checks]\n\n$ python manage.py crawl_products --category-url=https://example.com/category/list\n```\n\nOpen http://localhost:3000\n\n\n## Running Unit Tests\n\nFrontend:\n\n```\n$ docker exec -it frontend bash\n$ yarn run test\n```\n\nBackend:\n\n```\n$ docker exec -it djangoapp bash\n$ python manage.py test\n```\n\n## API\n\nFetch products\n\n```\nURl: GET http://localhost:8000/api/products/\n```\n\nCompare HTML Files\n\n```\nURl: POST http://localhost:8000/api/compare/\n{\n  \"from_product\": 1,\n  \"to_product\": 2\n}\n```\n\n## Linter \u0026 Github Actions\n\nI also added a linter and static analyzer to the projects.\n\nBackend Linter (Github Actions)\n\nhttps://github.com/bahattincinic/crawler-challenge/blob/master/.github/workflows/backend_linter.yml\n\n\u003cimg src=\"backend_github_action.png\"\u003e\n\nFrontend Linter (Github Actions)\n\nhttps://github.com/bahattincinic/crawler-challenge/blob/master/.github/workflows/frontend_linter.yml\n\n\u003cimg src=\"frontend_github_action.png\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahattincinic%2Fcrawler-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahattincinic%2Fcrawler-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahattincinic%2Fcrawler-challenge/lists"}