Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quentinwach/pdftocards
Convert any book or article in PDF form to a deck of flashcards!
https://github.com/quentinwach/pdftocards
anki anki-deck anki-flashcards chatgpt flashcards mathpix study study-materials
Last synced: 2 days ago
JSON representation
Convert any book or article in PDF form to a deck of flashcards!
- Host: GitHub
- URL: https://github.com/quentinwach/pdftocards
- Owner: QuentinWach
- Created: 2024-01-09T17:03:57.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-09T17:18:33.000Z (10 months ago)
- Last Synced: 2024-01-10T19:13:18.972Z (10 months ago)
- Topics: anki, anki-deck, anki-flashcards, chatgpt, flashcards, mathpix, study, study-materials
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![PDFtoCards](header_image.jpg)
**Take any book or article in PDF form and convert it to a deck of flashcards!**
* 👀 **Recognizes** text, equations, images, and (some) handwriting.
* 🧠 **Understands** the content and context of the PDF.
* ✍🏻 **Summarizes** the PDF as questions and answers systematically.
* 📕 **Reformats** everything into .txt, ready to be used in quiz programs like Anki!ChatGPT is used for understanding the content and MathPix to extract equations and images.
### ❓ How to use...
1. After installing these scripts as well as the depencies listed below and getting the required API keys, add these in the ``api_keys.py`` file.
2. Put the PDF you want to extract flashcards from into this directory, open the ``main.py`` file and change the ``PDF_TITLE = "this_is_your_pdf.pdf"`` variable to the name of the PDF.
3. Run the script!### 📂 Dependencies
You will need to install the following two libraries ``openai``, ``pypdf``, and get API keys for ``ChatGPT`` and ``MathPix``. Beware that using both will cost money. Even large textbooks will only cost a few cent though and the decks will be done in minutes not weeks!---
This is the hacky bare bone version of the software I had written last year trying to add a bunch more features and creating a web app. But I am not a web developer and so eventually lost interest when OpenAI kept releasing more and more cool stuff that made this seem not all that special. I learned a lot about web dev though and if this little thing helped and you like it, come to tell me on [X (formerly Twitter) @quentinwach](https://twitter.com/QuentinWach) 👋🏻.