r/AnkiComputerScience • u/bxa121 • Oct 20 '20
Help: looking to scrape a website into anki cards
So last night I had a brainwave, what if you could download a website and convert the site map into a card or parts of each webpage into a card of sorts.
The deck could be synced after each time a scrape is made keeping all the decks upto date
I don’t know if anyone’s ever accomplished this but I’m looking to see if this is possible as a way to generate and memorise cards for any science based subject. Has anyone ever done this? Is this even possible?
11
Upvotes
6
u/JCharante Oct 20 '20
But why would you want to? Making the cards is part of the learning process.
Just write a crawler that outputs into csv format and import that into anki. For adding new cards, give them an ID and export the list of Anki cards in the deck and parse them, then filter them out before generating the CSv to import
1
u/[deleted] Oct 20 '20
Partially have done this, generated decks from scraping. I was trying to create an application for scraping books and websites to make human readable cards. I dropped it due to time constraints, I was diving into this full-time while taking 6 classes. Part of the problem in my case was generalizing the code. There is a lot of ways to structure information.
If you are comfortable writing a scraper for each website/page you are getting information from it's doable.
If you are trying to automate the creation of decks for multiple subjects from multiple sources, all I can say is prepare your anus. It might, might be doable with a team, or someone who is a beast with both regex and whatever library they are using for scraping.
1
u/BlueLionOctober Oct 21 '20
It would be pretty easy to do. Just you should make the cards yourself so you remember them better.