{"id":48825780,"url":"https://github.com/jaxonma/lantradictionary","last_synced_at":"2026-04-19T17:13:06.403Z","repository":{"id":335766380,"uuid":"519432026","full_name":"JaxonMa/LantraDictionary","owner":"JaxonMa","description":"A Chinese dictionary website built with flask","archived":false,"fork":false,"pushed_at":"2026-04-14T16:30:54.000Z","size":99,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-14T17:26:22.328Z","etag":null,"topics":["flask","flask-app","flask-application","flask-website","html-css-javascript","python"],"latest_commit_sha":null,"homepage":"https://dictionary.lantra.top","language":"JavaScript","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/JaxonMa.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-07-30T05:55:26.000Z","updated_at":"2026-04-14T15:45:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/JaxonMa/LantraDictionary","commit_stats":null,"previous_names":["jaxonma/lantradictionary"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/JaxonMa/LantraDictionary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaxonMa%2FLantraDictionary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaxonMa%2FLantraDictionary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaxonMa%2FLantraDictionary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaxonMa%2FLantraDictionary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JaxonMa","download_url":"https://codeload.github.com/JaxonMa/LantraDictionary/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaxonMa%2FLantraDictionary/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31808518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"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":["flask","flask-app","flask-application","flask-website","html-css-javascript","python"],"created_at":"2026-04-14T18:00:24.618Z","updated_at":"2026-04-14T18:00:39.913Z","avatar_url":"https://github.com/JaxonMa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lantra Dictionary\n\nLantra Dictionary is a Flask-based Chinese dictionary web app.  \nIt supports searching both single Chinese characters and multi-character words, and returns pronunciation, radicals, explanations, and related words.\n\n## Requirements\n\n- Python 3.12\n- MongoDB (local or remote)\n\nInstall dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\n## Quick Start\n\n1. Download raw dictionary files from the source listed in [Data Source](#data-source)\n2. Put those files into the paths defined in `process_data.py` (`DICTIONARY_PATH`).\n3. Process raw data:\n\n```bash\npython process_data.py\n```\n\n4. Edit MongoDB URI in `setupdb.py`, then import processed data:\n\n```bash\npython setupdb.py\n```\n\n5. (Optional) edit MongoDB URI in `app.py` if needed.\n6. Start the web app:\n\n```bash\npython app.py\n```\n\nThen open `http://127.0.0.1:5000`.\n\n## Main Files and Folders\n\n- `app.py` - Flask entry point; defines page routes and the `/lookup/\u003cquery\u003e` API.\n- `dictionary.py` - Query module; fetches single-character or word results from MongoDB.\n- `process_data.py` - Converts raw dictionary JSON data into processed files used for DB import.\n- `setupdb.py` - Loads processed JSON files and inserts them into MongoDB collections.\n- `dictionary/chinese/` - Raw Chinese dictionary data files (not fully included in this repo).\n- `processed/chinese/` - Processed output files generated by `process_data.py`.\n\n## Data Source\n\n- [chinese-dictionary](https://github.com/mapull/chinese-dictionary)\n\n  \u003e **Required files:** After downloading the data from the source above, ensure you copy the following files into `dictionary/chinese` of your repo for processing:\n  \u003e - `character/char_base.json`\n  \u003e - `character/char-detail.json`\n  \u003e - `character/related.json`\n  \u003e - `word/word.json`\n  \u003e\n  \u003e These files are expected for correct operation of the data processing and import scripts.\n\n## TODO\n\n- Add English dictionary support.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaxonma%2Flantradictionary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaxonma%2Flantradictionary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaxonma%2Flantradictionary/lists"}