sviatoslav-lebediev / anki-quizlet-importer-extended

81 stars 10 forks source link

Quizlet can't be imported #86

Closed mahdihs123 closed 1 year ago

mahdihs123 commented 1 year ago

The quizlets I try to import are not being processed by the mod. I have used this mod for a while now and recently it has been giving me unknown errors constantly. I have also updated to the most recent version of anki and still am running into this problem.

one quizlet link I can't process is : https://quizlet.com/806874218/gi-secretions-flash-cards/?new

The unknown error is: Expecting value: line 1 column 1 (char 0).

Please let me know how this can be fixed.

JSGandora commented 1 year ago

I am getting the same error:

Expecting value: line 1 column 1 (char 0)
-----------------

The quizlet link i can't process is: https://quizlet.com/87443258/hebrew-vocabulary-essential-biblical-hebrew-lesson-18-flash-cards/

Additionally, when I try pasting the page html into the text box I get the same error.

I get the error on both Anki 2.1.35 and 2.1.49.

ARPBlueSteel commented 1 year ago

Same issue here

Expecting value: line 1 column 1 (char 0)
-----------------

Quizlet link is: https://quizlet.com/305727204/32-chromosomes-flash-cards/

Pasting html does not seem to fix the issue.

Version ⁨2.1.61 (0c1eaf4c)⁩, Windows 10

Please let me be aware if there is a workaround.

OlegShevtsov1 commented 1 year ago

Same issue here

Expecting value: line 1 column 1 (char 0)

Quizlet link is: https://quizlet.com/329740026/business-result-intermediate-unit-1-flash-cards

Pasting html does not seem to fix the issue.

Version ⁨2.1.64 (581f82c5)⁩, Linux Ubuntu

Please let me be aware if there is a workaround.

sviatoslav-lebediev commented 1 year ago

Hi, I've checked and I can import all decks that you guys sent. Maybe the problem is that you paste incorrect HTML?

  1. you need to enter a URL
  2. click on the open html button
  3. take source from that page, NOT FROM YOUR DECK PAGE

If you don't need audio - uncheck the Download audio checkbox. It will work 100% because it doesn't require any additional info. If you paste just the URL the add-on needs to download that HTML page and the problem is that Quizlet from time to time based on some algorithms protects these pages using Cloudflare.

here is a video how I've imported @OlegShevtsov1 deck

https://github.com/sviatoslav-lebediev/anki-quizlet-importer-extended/assets/19693768/49771432-b928-4ead-832d-d0106f006a87

JSGandora commented 1 year ago

I am getting the same error:

Expecting value: line 1 column 1 (char 0)
-----------------

The quizlet link i can't process is: https://quizlet.com/87443258/hebrew-vocabulary-essential-biblical-hebrew-lesson-18-flash-cards/

Additionally, when I try pasting the page html into the text box I get the same error.

I get the error on both Anki 2.1.35 and 2.1.49.

I saw @sviatoslav-lebediev's comment on the Anki plugin page about how Quizlet sometimes blocks requests. So I tried using a vpn and it worked the second time I tried importing.

OlegShevtsov1 commented 1 year ago

I've imported. But the next time it has been not working.

sviatoslav-lebediev commented 1 year ago

@OlegShevtsov1 could you provide some context? It doesn't work when you paste HTML ? Do you receive the same Expecting value: line 1 column 1 (char 0) error ? Do you try to import the same deck ? ...

OlegShevtsov1 commented 1 year ago

I've been imported the other deck https://quizlet.com/212835488/vocabulary-business-result-intermediate-unit-2-flash-cards/

When I import the same the error is the previous too

image

JSGandora commented 1 year ago

I've been imported the other deck https://quizlet.com/212835488/vocabulary-business-result-intermediate-unit-2-flash-cards/

When I import the same the error is the previous too

image

Fwiw I get the same error when I tried to import using the Page html.

OlegShevtsov1 commented 1 year ago

When it's the copy-paste it's the same error too.

image

penpalcali commented 1 year ago

I was importing decks just fine (probably converted 5 decks) until about 20 minutes ago when I keep getting the same error as everyone above is and I have tried at least 10 times to convert it but I keep getting the same error

Screenshot 2023-05-31 at 2 02 36 PM
JSGandora commented 1 year ago

I was importing decks just fine (probably converted 5 decks) until about 20 minutes ago when I keep getting the same error as everyone above is and I have tried at least 10 times to convert it but I keep getting the same error

Screenshot 2023-05-31 at 2 02 36 PM

Perhaps try using a VPN to download the decks. It might take a few tries. It looks like you’re on mac - Proton VPN is installed by default I believe.

sviatoslav-lebediev commented 1 year ago

I would try to use a VPN as some guys proposed here + try to check skip errors when you use the HTML option but after that try to check if all images have been downloaded.

In a nutshell, the problem is that this add-on needs to download somehow data from the quizlet. Quizlet blocks sometimes requests (HTML, audio, images) using CloudFlare. I use some proxies that help to fetch data but because this add-on become quite popular I guess that proxy list can't handle all requests. Some free CloudFlare fixers that I've tried didn't work and I'm not ready to pay 100-200$ per month for paid solutions. I'm going to try to use a few more approaches that maybe will help me to fix the problem with CloudFlare.

If you have some services or solutions that you think can help - let me know.

pneumonicsonic commented 1 year ago

I was having the same issue until I disable my adblocker in firefox. I've now imported two decks without issue. FWIW

mhujer commented 1 year ago

What worked for me just to work around the "Captcha challenge..." error was to set qlts config value in Tools -> Addons -> Quizlet to Anki -> Config. As a value I used cookie with a same name from Chrome where I'm logged into Quizlet.

mhujer commented 1 year ago

It was probably just a coincidence, that setting "qlts" worked before.

But I think I know why someone has issues using the HTML import and someone does not. It didn't work for me either and it turns out that it is because Quizlet generates different HTML when you are logged in.

So all it took was to open the flashcards in Chrome private window and copy HTML from there.

Hope it helps!

sviatoslav-lebediev commented 1 year ago

@mhujer good call, thx you. i will add this info to the add-on page

OlegShevtsov1 commented 1 year ago

The error still here Expecting value: line 1 column 1 (char 0)

I'm importing the flash cards without any blocker, VPN, restricted access in Chrome incognito mode Could you please tip a last solution of the issue

sviatoslav-lebediev commented 1 year ago

@OlegShevtsov1 I've released a new version of the add-on, please update the add-on and try one more time

JSGandora commented 1 year ago

I updated the add-on but now I keep on getting the same error even after I connect to VPN. It also doesn't work when I copy the page html - I get the same error. Is there a way to get the import using html to work? How do I know if when I paste the HTML it doesn't just try to reconnect to Quizlet using the link again?

sviatoslav-lebediev commented 1 year ago

@JSGandora what error do you receive?

As for the HTML mode

  1. If your deck doesn't have images and you uncheck Download audio the add-on will not do any external calls
  2. If you need audio or it has images the add-on will do calls because it needs to download these URLs.
  3. If some of the deck URLs (audio/image) are broken you can try to check Skip errors checkbox

I've tried to download your deck and I haven't seen any issues

Hebrew Vocabulary Essential Biblical Hebrew lesson 18.apkg.zip

JSGandora commented 1 year ago

I'm trying two Quizlet decks, one with only text and images (https://quizlet.com/87443339/hebrew-vocabulary-essential-biblical-hebrew-lesson-21-flash-cards/), and the other with only text (https://quizlet.com/505133797/final-study-pual-hiphil-hophal-hithpael-parsing-practice-flash-cards/).

I tried importing both decks [1] without audio and without the html, [2] without audio but using the html [3] withou audio and with skip errors checked, but they all give me the "Expecting value: line 1 column 1(char 0)" error as I got before.

I also tried the above with and without VPN.

Screenshot 2023-06-19 at 10 39 43 AM

Screenshot 2023-06-19 at 10 40 28 AM

Screenshot 2023-06-19 at 10 44 29 AM

sviatoslav-lebediev commented 1 year ago

@JSGandora sorry, UI is not the best but you need to check this checkbox

image

it's strange that your last try wasn't successful Could you try to install the version from this page https://github.com/sviatoslav-lebediev/anki-quizlet-importer-extended/releases/tag/v2023.06.18 ?

p.s. here is your deck Final Study_ Pual, Hiphil, Hophal, Hithpael Parsing Practice.apkg.zip

JSGandora commented 1 year ago

I just tried installing the version of the add on from your link, and importing this deck: https://quizlet.com/87443339/hebrew-vocabulary-essential-biblical-hebrew-lesson-21-flash-cards/ but I still get the error:

Screenshot 2023-06-19 at 7 10 33 PM

Thank you for creating one of the decks for me! If it's not too much of a hassle could you also attach the above deck as well?

OlegShevtsov1 commented 1 year ago

@sviatoslav-lebediev It works fine for me from this update https://github.com/sviatoslav-lebediev/anki-quizlet-importer-extended/releases/tag/v2023.06.18

Thanks!

JSGandora commented 1 year ago

@OlegShevtsov1 does importing a deck with pictures also work for you? Or just text?

JSGandora commented 1 year ago

Nevermind - the first time I tried I did not uninstall the add-on before reinstalling it, I thought installing it from the file would override it. Uninstalling the add-on and reinstalling it worked for me!

OlegShevtsov1 commented 1 year ago

@JSGandora text with picture and audio

The desk for an example https://quizlet.com/596690768/business-result-2nd-edition-intermediate-unit-1-flash-cards/

image

sviatoslav-lebediev commented 1 year ago

going to close this issue, if somebody still can't import decks, please create a new issue