{"id":21572108,"url":"https://github.com/zingale/ads2html","last_synced_at":"2025-03-18T06:17:34.920Z","repository":{"id":83576933,"uuid":"51252311","full_name":"zingale/ads2html","owner":"zingale","description":"Parse ADS URLs for bibtex and create a convenient object for writing HTML publication lists","archived":false,"fork":false,"pushed_at":"2018-03-08T17:53:34.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T13:11:14.341Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zingale.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}},"created_at":"2016-02-07T15:23:22.000Z","updated_at":"2016-02-07T15:23:36.000Z","dependencies_parsed_at":"2023-07-07T20:32:11.324Z","dependency_job_id":null,"html_url":"https://github.com/zingale/ads2html","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingale%2Fads2html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingale%2Fads2html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingale%2Fads2html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingale%2Fads2html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zingale","download_url":"https://codeload.github.com/zingale/ads2html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244166763,"owners_count":20409180,"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":[],"created_at":"2024-11-24T11:18:13.266Z","updated_at":"2025-03-18T06:17:34.901Z","avatar_url":"https://github.com/zingale.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ads2html\n\nThis is a simple parser that will take a file of bibtex or a list of\nADS URLs and return a list of `Paper` objects that have the\nbibliographic information in a convinent form for outputting to HTML.\n\nNote: this requires python 3\n\n\n## Working with a file containing bibtex\n\nYou can provide a file containing the bibtex for each paper directly from\nADS.  You will need to add an additional field, `subject`, that will be\nused for subject classication sorting.  This can be assigned anything you\nplease.\n\n```\nimport parser\npapers = parser.parse_bibfile(\"papers.bib\")\n\nfor p in papers:\n    t, o, l = p.jstring()\n    print(t, o, l)\n```\n\n\n## Working with a file containing ADS links\n\nYour text file should be of the form:\n```\nsubject: ads-url-to-abstract\n```\n\nE.g.,\n```\nalgorithm: http://adsabs.harvard.edu/abs/2015ApJS..216...31Z\n```\n\nThe paper ID will be obtained from the link and then the bibtex\nwill be directly downloaded from ADS.  The rest of the procedure\nworks the same:\n\n```\nimport parser\n\npapers = parser.parse_urlfile(\"castro-papers.txt\")\n\n...\n```\n\n## Example\n\nThe example `write_papers_html.py` will demonstrate how to generate an\nHTML table, sorted by subject, from a list of ADS URLs.  This example\nis from the Castro website: https://boxlib-codes.github.io/Castro/papers.html\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzingale%2Fads2html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzingale%2Fads2html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzingale%2Fads2html/lists"}