{"id":19381149,"url":"https://github.com/j2kun/math-genealogy-scraper","last_synced_at":"2026-03-02T21:32:19.750Z","repository":{"id":54293174,"uuid":"94291023","full_name":"j2kun/math-genealogy-scraper","owner":"j2kun","description":"Code for scraping (and a mirror of) the Math Genealogy Database","archived":false,"fork":false,"pushed_at":"2023-07-20T15:09:13.000Z","size":7713,"stargazers_count":18,"open_issues_count":2,"forks_count":5,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-02-24T16:53:20.049Z","etag":null,"topics":["asyncio","database","dataset","math-genealogy","mathematics","scraper"],"latest_commit_sha":null,"homepage":null,"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/j2kun.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":"2017-06-14T05:03:16.000Z","updated_at":"2024-11-26T04:38:24.000Z","dependencies_parsed_at":"2025-01-07T06:29:10.810Z","dependency_job_id":"0648f911-7c8c-402f-b760-f7c496f51904","html_url":"https://github.com/j2kun/math-genealogy-scraper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/j2kun/math-genealogy-scraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j2kun%2Fmath-genealogy-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j2kun%2Fmath-genealogy-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j2kun%2Fmath-genealogy-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j2kun%2Fmath-genealogy-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j2kun","download_url":"https://codeload.github.com/j2kun/math-genealogy-scraper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j2kun%2Fmath-genealogy-scraper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271843667,"owners_count":24832611,"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-24T02:00:11.135Z","response_time":111,"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":["asyncio","database","dataset","math-genealogy","mathematics","scraper"],"created_at":"2024-11-10T09:16:09.280Z","updated_at":"2026-03-02T21:32:14.701Z","avatar_url":"https://github.com/j2kun.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Math Genealogy\n\nCode for scraping the math genealogy website.\n\nA copy of the database, scraped on 2019-06-17, is contained in `data.json`.\n\nRequirements:\n\n - python3.5+\n - aiohttp\n - beautifulsoup4\n\n## Setup\n\nOptionally create a virtualenvironment\n\n```\nvirtualenv venv\nsource venv/bin/activate\n```\n\nInstall required packages\n\n```\npip install -r requirements.txt\n```\n\nRun it!\n\n```\npython fetch.py\n```\n\nThe output, stored in `data.json`, is a dictionary with a single key `nodes`,\nmapping to a list of dictionaries (specified by `parse.py`) of the form\n\n```\n{\n  \"students\": [\n    int, int, ...   \u003c-- refers to the id field\n  ],\n  \"advisors\": [\n    int, int, ...\n  ],\n  \"name\": str,\n  \"school\": str,\n  \"subject\": str,\n  \"thesis\": str,\n  \"country\": str,\n  \"year\": int,\n  \"id\": int,\n}\n```\n\nFields that were not found are null, or the empty list, as appropriate.\n\nExample:\n\n```\n{\n  \"id\": 186481,\n  \"name\": \"John Anthony Gerard Roberts\",\n  \"thesis\": \"Order and Chaos in reversible Dynamical Systems\",\n  \"school\": \"University of Melbourne\",\n  \"country\": \"Australia\",\n  \"year\": 1990,\n  \"subject\": null,\n  \"advisors\": [\n    53185,\n    116308\n  ],\n  \"students\": [\n    186482,\n    186484,\n    186486,\n    186485\n  ]\n}\n```\n\n## Details\n\nTo be a nice person, this program rate-limits itself to have 5 concurrent\nworkers hitting the math genealogy website. Downloading the entire database in\nthis way takes about 6 hours. This repository contains a copy of the entire\ndataset in `data.json` so you don't have to hammer their servers. This dataset\nwas fetched on 2019-06-17.\n\nHowever, if you insist on being a bad person, you can increase the limit on the\nworker semaphore in `fetch.py` and re-run it.\n\n```\nsem = asyncio.BoundedSemaphore(5)  # 5 workers\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj2kun%2Fmath-genealogy-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj2kun%2Fmath-genealogy-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj2kun%2Fmath-genealogy-scraper/lists"}