OxxoCodes / Quizlet-dl

A Python script to download and export Quizlets in JSON format
GNU General Public License v3.0
19 stars 6 forks source link

Unable to locate element #3

Open Bartek200219 opened 3 years ago

Bartek200219 commented 3 years ago

I tried running script and it isn't working. Log: https://paste.ee/p/Bv5NMf

OxxoCodes commented 3 years ago

Got a 404 trying to open that paste? Assuming this is what I believe it to be, it's a known bug with Quizlet-dl not being able to locate the "See More" button. If this is the case, then a patch has been developed and will be pushed soon.

Bartek200219 commented 3 years ago

Sorry, I miss clicked f on keyboard, here is correct link: https://paste.ee/p/Bv5NM

MagTun commented 3 years ago

I don't know if you found a way but the solution was either to change the way the title is extracted (it is done around line 90, just below def saveCards(terms, definitions, driver):) .

You could have set the title manually (ex: title="some title") or replace the line with title = driver.find_elements_by_class_name('UIHeading--one')[0].text

Or you can use the file quizlet-dl.py in the pull request I have just submitted.

Bartek200219 commented 3 years ago

Or you can use the file quizlet-dl.py in the pull request I have just submitted.

Thank you I tested it and it works. I hope more people can use it now. https://github.com/OxxoCodes/Quizlet-dl/pull/4