Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.3.7 instead.

AnkiChinese

Asynchronously scrape the ArchChinese dictionary to generate Anki flashcards

Online Flashcard Demo
Online Flashcard
Offline Flashcard Demo
Offline Flashcard

Installation

pip install ankichinese
playwright install

Usage

ankichinese

-h, --help                          Show help message and exit

--export, -x {anki, csv, update}    Export mode (default: anki)
                                    anki: Generate new AnkiChinese deck
                                    csv: Generate CSV file
                                    update: Update existing deck
--input, -i INPUT                   Input file with characters to scrape (default: input.txt)
--output, -o OUTPUT                 Name of output file (do not include extension)
                                    (default: ankichinese_output)

--definitions, -def NUM             Number of definitions to scrape per character (default: 5)
--examples, -ex NUM                 Number of example words to scrape per character (default: 5)

--requests-at-once, -r NUM          Maximum number of requests at once (default: 10)
--requests-per-second, -rs NUM      Maximum number of requests per second (default: 5)

Generate New AnkiChinese Deck

How to create an entirely new Anki deck with the name ankichinese_output.apkg in the current directory using custom AnkiChinese styling.

  1. Create input.txt with the characters you want to scrape.
  2. Run ankichinese -x anki.
  3. Open Anki and import ankichinese_output.apkg.

Updating is Easy!
Just run ankichinese -x anki again with new characters in input.txt and import the new ankichinese_output.apkg file into Anki. Anki will automatically update the existing deck without losing progress.

Update Existing (Non-AnkiChinese) Deck Without Losing Progress

  1. Create input.txt with the characters you want to scrape (can be the same as the existing deck).
  2. Run ankichinese -x update.
  3. Choose deck and model of cards to update. AnkiChinese will search for and overwrite any fields with the same names as the following.
Field Name Description
Hanzi Simplified character (REQUIRED)
Traditional Traditional form
Definition Meaning of character
Pinyin Most common pinyin
Pinyin 2 Other possible pinyin
Words Example words
Formation Origin / mnemonic for character
HSK Hanyu Shuiping Kaoshi level
Audio Audio file name (required for audio)
  1. Import the new ankichinese_audio.apkg file into Anki. This will import the audio files (and create an empty deck that can be deleted)

Tools Used

Credits

Character information: ArchChinese

Stroke order diagrams:

Chinese audio:

MIT License

Copyright (c) 2023 Luke Tao

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for AnkiChinese 1.3.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AnkiChinese 1.3.8
File Size Uploaded
AnkiChinese-1.3.8.tar.gz 10.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for AnkiChinese 1.3.8
File Interpreter ABI Platform
AnkiChinese-1.3.8-py3-none-any.whl Python 3 none any Details

Total release size: 20.1 MB

Release files / AnkiChinese-1.3.8.tar.gz

Download URL AnkiChinese-1.3.8.tar.gz
Size 10.2 MB
Tags Source
SHA-256 checksum
How to use checksums
fa132ddfdcd97395475a9bd901379f891fba3cd9528eb010530c740892430980
BLAKE2b-256 checksum
How to use checksums
42c6d04ad9d746fe52dd1180a7c580088f0fe721ffad36f8ef1a5ac3e483dcd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / AnkiChinese-1.3.8-py3-none-any.whl

Download URL AnkiChinese-1.3.8-py3-none-any.whl
Size 9.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
bba23571fd650ddf82e184cd625f8494f1939f237c6b3a52643e4ceac1912a8e
BLAKE2b-256 checksum
How to use checksums
64ed7a52f45c3346c6c3b70b977365cedf1ee16143bcd65bbdaf5432eb588333
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

1.3.8 This release

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.1.0

2 release files

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page