anilabhadatta / educative.io_scraper

Educative.io Course Downloader developed using Python and Selenium. Refer Readme.md for setup instructions.
MIT License
167 stars 55 forks source link

Found Issue, Going Next Course Message: no such element: Unable to locate element: {"method":"css selector","selector":"h4"} #25

Closed EngAhmedSalah closed 1 year ago

EngAhmedSalah commented 1 year ago

Describe the bug I have this issue while trying to download a course Found Issue, Going Next Course Message: no such element: Unable to locate element: {"method":"css selector","selector":"h4"}

Expected behavior course downloaded successfully

Screenshots image

Desktop (please complete the following information):

anilabhadatta commented 1 year ago

Please provide the url of the topic @EngAhmedSalah

EngAhmedSalah commented 1 year ago

https://github.com/topics/educative-scraper

anilabhadatta commented 1 year ago

@EngAhmedSalah this is not i meant. Which topic url of educative.io are you trying to scrap?

skd1993 commented 1 year ago

@anilabhadatta i'm facing same issue Course: https://www.educative.io/path/become-a-rust-professional URL of first topic: https://www.educative.io/module/page/j2l3BzfAqpARx54pm/10370001/5387205784895488/5808916544094208 Does scraper not work on "modules" and "paths"?

EngAhmedSalah commented 1 year ago

@EngAhmedSalah this is not i meant. Which topic url of educative.io are you trying to scrap?

@anilabhadatta this topic : https://www.educative.io/courses/grokking-dynamic-programming-patterns-for-coding-interviews/m2G1pAq0OO0

anilabhadatta commented 1 year ago

@skd1993 @EngAhmedSalah I think you are using the releases executables. Please clone the repository using git and run the script manually -> steps are written on readme. This is required since the executable releases are not up to date.

skd1993 commented 1 year ago

@skd1993 @EngAhmedSalah I think you are using the releases executables. Please clone the repository using git and run the script manually -> steps are written on readme. This is required since the executable releases are not up to date.

Thanks this is working for me now.

EngAhmedSalah commented 1 year ago

Hi @anilabhadatta . I tried to clone the project on an ubuntu machine and I get this error too. image

anilabhadatta commented 1 year ago

Can you tell me your python version? @EngAhmedSalah Minimum python 3.7+ is required

Activate the virtual env and enter pip3 uninstall slugify pip3 install python-slugify==7.0.0

EngAhmedSalah commented 1 year ago

finally, the problem has been solved. the executable files are not up to date so. you should clone the repo manually and use it. for Linux machines, use python 3.7 as @anilabhadatta mentioned. thanks four your support.