{"id":20683132,"url":"https://github.com/eivindarvesen/naive-spider","last_synced_at":"2026-05-31T02:31:04.963Z","repository":{"id":70323530,"uuid":"55640551","full_name":"EivindArvesen/naive-spider","owner":"EivindArvesen","description":"A minimal web crawler","archived":false,"fork":false,"pushed_at":"2016-04-09T11:38:38.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-17T04:29:59.447Z","etag":null,"topics":["crawler","python","spider"],"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/EivindArvesen.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":"2016-04-06T21:06:42.000Z","updated_at":"2018-02-18T12:35:37.000Z","dependencies_parsed_at":"2023-02-28T15:45:20.415Z","dependency_job_id":null,"html_url":"https://github.com/EivindArvesen/naive-spider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EivindArvesen/naive-spider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EivindArvesen%2Fnaive-spider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EivindArvesen%2Fnaive-spider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EivindArvesen%2Fnaive-spider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EivindArvesen%2Fnaive-spider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EivindArvesen","download_url":"https://codeload.github.com/EivindArvesen/naive-spider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EivindArvesen%2Fnaive-spider/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33717415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"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":["crawler","python","spider"],"created_at":"2024-11-16T22:15:34.219Z","updated_at":"2026-05-31T02:31:04.944Z","avatar_url":"https://github.com/EivindArvesen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Minimal Web Crawler\nA naive implementation of a spider that depends only on the Python standard library.\nIt is able to resume operations if shut down (via ctrl+c).\n\nRun the script with the command\n```bash\npython main.py \u003cURL(s) to start with\u003e\n```\n\nThe applications takes an arbitrary number of URLs to start with as arguments.\nIt then saves urls to a queue and to a database.\nThen, if there is a document at the URL, it downloads this to a databse, parses it and finds any links, and adds these to the queue.\nThis work is preformed on several threads concurrently.\n\n## Assumptions\nThis crawler assumes that Python (2.x.x) is available, and that there is a functional SQLite installation.\n\n## Limitations\nThe program can only deal with well formed documents - valid markup (with UTF-8 encoding).\n\nWere this a serious project I would probably base my work upon robust frameworks\nlike Scrapy and Beautiful Soup, to better handle scraping strategies and parsing\nof broken markup, respectively.\n\n## Possible future improvements\n- Error handling on queries to SQLite.\n- Not behaving as though the crawler is finished parsing and extracting links from current URL if it is interrupted while parsing.\n- Serialization/saving should be optimized.\n- Separate the tasks of downloading and saving document, and parsing document to find links into different processes.\n- Add rule support (blacklisting, etc.)\n- Better model abstraction (i.e. objects/classes for interactions with frontier and storage).\n- Reorganization of some code, e.g. dealing with args etc. elsewhere.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feivindarvesen%2Fnaive-spider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feivindarvesen%2Fnaive-spider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feivindarvesen%2Fnaive-spider/lists"}