Giter Club home page Giter Club logo

algoexpert-download's Issues

How to get Vimeo Video ID for downloading video?

Hi Iftakhar,

Thank you for providing the source code to download videos from Algoexpert.
I don't find the video ID from algoexpert. Could you elaborate more explanation on this?

Best regards,
Hilmi

Can't run main type|type error

File "C:...\algoexpert-download-main\practice_environment_builder\starter_test_file_writter.py", line 15, in
def get_tester_code(question_object:dict|list, question_tests_object:dict|list, module_to_test:str):
TypeError: unsupported operand type(s) for |: 'type' and 'type'

Probably needed an update of QUESTION_STATEMENT_XPATH

While running Download PDF, it stucks with the first one.

Downloading pdf: 1 Palindrome Check

Traceback (most recent call last):
File "C:\Users\capar\Desktop\Nuova cartella (2)\algoexpert-download-main\main.py", line 19, in
main()
File "C:\Users\capar\Desktop\Nuova cartella (2)\algoexpert-download-main\main.py", line 12, in main
download_question_pdf()
File "C:\Users\capar\Desktop\Nuova cartella (2)\algoexpert-download-main\downloaders\question_pdf\question_pdf_downloader.py", line 52, in main
DRIVER.get(f'{QUESTION_URL_PREFIX}{question_name}')

File "C:\pint\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in get
self.execute(Command.GET, {'url': url})
File "C:\pint\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 418, in execute
self.error_handler.check_response(response)
File "C:\pint\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 243, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: unexpected command response
(Session info: chrome=103.0.5060.114)
Stacktrace:
Backtrace:
Ordinal0 [0x00C96463+2188387]
Ordinal0 [0x00C2E461+1762401]
Ordinal0 [0x00B43D78+802168]
Ordinal0 [0x00B37210+750096]
Ordinal0 [0x00B3675A+747354]
Ordinal0 [0x00B35D3F+744767]
Ordinal0 [0x00B3557C+742780]
Ordinal0 [0x00B49BF3+826355]
Ordinal0 [0x00B9CF6D+1167213]
Ordinal0 [0x00B8C5F6+1099254]
Ordinal0 [0x00B66BE0+945120]
Ordinal0 [0x00B67AD6+948950]
GetHandleVerifier [0x00F371F2+2712546]
GetHandleVerifier [0x00F2886D+2652765]
GetHandleVerifier [0x00D2002A+520730]
GetHandleVerifier [0x00D1EE06+516086]
Ordinal0 [0x00C3468B+1787531]
Ordinal0 [0x00C38E88+1805960]
Ordinal0 [0x00C38F75+1806197]
Ordinal0 [0x00C41DF1+1842673]
BaseThreadInitThunk [0x76D4FA29+25]
RtlGetAppContainerNamedObjectPath [0x772C7A9E+286]
RtlGetAppContainerNamedObjectPath [0x772C7A6E+238]

I've also got a different stack trace changing LOAD_QUESTION_MAX_WAIT_TIME = 10:

Traceback (most recent call last):
File "C:\Users\capar\AppData\Local\JetBrains\PyCharm Community Edition 2021.1.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1483, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Users\capar\AppData\Local\JetBrains\PyCharm Community Edition 2021.1.1\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/capar/Desktop/Nuova cartella (2)/algoexpert-download-main/main.py", line 19, in
main()
File "C:/Users/capar/Desktop/Nuova cartella (2)/algoexpert-download-main/main.py", line 12, in main
download_question_pdf()
File "C:\Users\capar\Desktop\Nuova cartella (2)\algoexpert-download-main\downloaders\question_pdf\question_pdf_downloader.py", line 53, in main
WebDriverWait(DRIVER, LOAD_QUESTION_MAX_WAIT_TIME).until(EC.visibility_of_element_located((By.XPATH, QUESTION_STATEMENT_XPATH)))

File "C:\pint\lib\site-packages\selenium\webdriver\support\wait.py", line 89, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
Stacktrace:
Backtrace:
Ordinal0 [0x00C96463+2188387]
Ordinal0 [0x00C2E461+1762401]
Ordinal0 [0x00B43D78+802168]
Ordinal0 [0x00B71880+989312]
Ordinal0 [0x00B71B1B+989979]
Ordinal0 [0x00B9E912+1173778]
Ordinal0 [0x00B8C824+1099812]
Ordinal0 [0x00B9CC22+1166370]
Ordinal0 [0x00B8C5F6+1099254]
Ordinal0 [0x00B66BE0+945120]
Ordinal0 [0x00B67AD6+948950]
GetHandleVerifier [0x00F371F2+2712546]
GetHandleVerifier [0x00F2886D+2652765]
GetHandleVerifier [0x00D2002A+520730]
GetHandleVerifier [0x00D1EE06+516086]
Ordinal0 [0x00C3468B+1787531]
Ordinal0 [0x00C38E88+1805960]
Ordinal0 [0x00C38F75+1806197]
Ordinal0 [0x00C41DF1+1842673]
BaseThreadInitThunk [0x76D4FA29+25]
RtlGetAppContainerNamedObjectPath [0x772C7A9E+286]
RtlGetAppContainerNamedObjectPath [0x772C7A6E+238]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.