{"id":21923091,"url":"https://github.com/26hzhang/dblpparser","last_synced_at":"2025-10-19T21:17:14.904Z","repository":{"id":92547528,"uuid":"131003902","full_name":"26hzhang/DBLPParser","owner":"26hzhang","description":"A python parser for DBLP dataset","archived":false,"fork":false,"pushed_at":"2019-03-20T06:48:02.000Z","size":556,"stargazers_count":45,"open_issues_count":1,"forks_count":17,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T09:21:48.555Z","etag":null,"topics":["dblp-dataset","python3"],"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/26hzhang.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}},"created_at":"2018-04-25T12:36:38.000Z","updated_at":"2025-03-02T01:51:55.000Z","dependencies_parsed_at":"2023-03-05T04:15:28.172Z","dependency_job_id":null,"html_url":"https://github.com/26hzhang/DBLPParser","commit_stats":null,"previous_names":["26hzhang/dblpparser","isaacchanghau/dblpparser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/26hzhang%2FDBLPParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/26hzhang%2FDBLPParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/26hzhang%2FDBLPParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/26hzhang%2FDBLPParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/26hzhang","download_url":"https://codeload.github.com/26hzhang/DBLPParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249725088,"owners_count":21316123,"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":["dblp-dataset","python3"],"created_at":"2024-11-28T21:09:04.534Z","updated_at":"2025-10-19T21:17:09.866Z","avatar_url":"https://github.com/26hzhang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DBLP Dataset Parser\n\n![Authour](https://img.shields.io/badge/Author-Zhang%20Hao%20(Isaac%20Changhau)-blue.svg) ![Python](https://img.shields.io/badge/Python-3.6.5-brightgreen.svg)\n\nIt is a python parser for [DBLP dataset](https://dblp.uni-trier.de/), the XML format dumped file can be downloaded [here](http://dblp.org/xml/) from [DBLP Homepage](https://dblp.org/).\n\nThis parser requires `dtd` file, so make sure you have both `dblp-XXX.xml` (dataset) and `dblp-XXX.dtd` files. Note that you also should guarantee that both `xml` and `dtd` files are in the same directory, and the name of `dtd` file shoud same as the name given in the `\u003c!DOCTYPE\u003e` tag of the `xml` file. Such information can be easily accessed through `head dblp-XXX.xml` command. As shown below\n```xml\n\u003c?xml version=\"1.0\" encoding=\"ISO-8859-1\"?\u003e\n\u003c!DOCTYPE dblp SYSTEM \"dblp-2017-08-29.dtd\"\u003e\n\u003cdblp\u003e\n\u003cphdthesis mdate=\"2016-05-04\" key=\"phd/dk/Heine2010\"\u003e\n\u003cauthor\u003eCarmen Heine\u003c/author\u003e\n\u003ctitle\u003eModell zur Produktion von Online-Hilfen.\u003c/title\u003e\n...\n```\n\nA sample to use the parser:\n```python\ndef main():\n    dblp_path = 'dataset/dblp.xml'\n    save_path = 'article.json'\n    try:\n        context_iter(dblp_path)\n        log_msg(\"LOG: Successfully loaded \\\"{}\\\".\".format(dblp_path))\n    except IOError:\n        log_msg(\"ERROR: Failed to load file \\\"{}\\\". Please check your XML and DTD files.\".format(dblp_path))\n        exit()\n    parse_article(dblp_path, save_path, save_to_csv=False)  # default save as json format\n```\n\nSome extracted results:\n\n**Count the number of all different type of publications**:\n![general](/img/general.png)\n\n**Count the number of all different attributes among all publications**:\n![all_feature](/img/all_feature.png)\n\n**Count the number of five different features of articles**:\n![article_feature](/img/article_feature.png)\n\n**Distribution of published year of articles**:\n![article_year](/img/article_year.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F26hzhang%2Fdblpparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F26hzhang%2Fdblpparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F26hzhang%2Fdblpparser/lists"}