Giter VIP home page Giter VIP logo

udemycourseenrollbot's Introduction

UdemyCourseEnrollBot

A bot which scrapes coupon code & auto-enrolls you to that course.

Video-link of the bot working

Requirements

  • Requires python, selenium, anti-captcha (pip install python-anticaptcha).

  • Works in Latest version of chrome.

How to use?

  • On Line number 21 & 23, give your udemy login-email id & udemy password, and you are done.

  • You need to install chromedriver & give its path in the PATH variable.

Note

  • I made this so it can only scrape data from the first page of tutorial-bar, as from the second pages most of the coupon codes are already expired.

  • If a course is already owned or there is a discount coupon it will throw an exception which is handled(it will print out a statement stating the problem).

  • The google-recaptcha is commented because i don't have the minimum credits to use the captcha solving services, also the google-recaptcha comes if you try it repeatedly, so don't need to worry ^_^.

  • You can use this bot once in a day.

Reminder

Always pay for the course that you want to support your mentor. These are just free coupons available for a certain period of time and not based on quantity.

udemycourseenrollbot's People

Contributors

arjunprasadsarkhel avatar pratrup9g avatar

Stargazers

Deleting Account  avatar  avatar 5l1v3r1 avatar Thanawat avatar  avatar  avatar  avatar  avatar Abhishek Bhattacharya avatar

Watchers

 avatar

udemycourseenrollbot's Issues

selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element

2022-06-16T18:36:43.722474+00:00 heroku[web.1]: Starting process with command python UdemyCourseBot.py
2022-06-16T18:36:54.261784+00:00 heroku[web.1]: State changed from starting to crashed
2022-06-16T18:36:54.274210+00:00 heroku[web.1]: State changed from crashed to starting
2022-06-16T18:36:53.860245+00:00 app[web.1]: Traceback (most recent call last):
2022-06-16T18:36:53.860267+00:00 app[web.1]: File "/app/UdemyCourseBot.py", line 114, in
2022-06-16T18:36:53.860397+00:00 app[web.1]: obj = Bot_driver().driver_bot()
2022-06-16T18:36:53.860407+00:00 app[web.1]: File "/app/UdemyCourseBot.py", line 48, in driver_bot
2022-06-16T18:36:53.860513+00:00 app[web.1]: udemycouponlink = self.driver.find_element_by_class_name("priced_block")
2022-06-16T18:36:53.860519+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 766, in find_element_by_class_name
2022-06-16T18:36:53.860744+00:00 app[web.1]: return self.find_element(by=By.CLASS_NAME, value=name)
2022-06-16T18:36:53.860756+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 1251, in find_element
2022-06-16T18:36:53.860966+00:00 app[web.1]: return self.execute(Command.FIND_ELEMENT, {
2022-06-16T18:36:53.860973+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 430, in execute
2022-06-16T18:36:53.861083+00:00 app[web.1]: self.error_handler.check_response(response)
2022-06-16T18:36:53.861091+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response
2022-06-16T18:36:53.861183+00:00 app[web.1]: raise exception_class(message, screen, stacktrace)
2022-06-16T18:36:53.861226+00:00 app[web.1]: selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".priced_block"}
2022-06-16T18:36:53.861226+00:00 app[web.1]: (Session info: headless chrome=102.0.5005.115)
2022-06-16T18:36:53.861226+00:00 app[web.1]: Stacktrace:
2022-06-16T18:36:53.861227+00:00 app[web.1]: #0 0x560509180f33
2022-06-16T18:36:53.861227+00:00 app[web.1]: #1 0x560508ecb118
2022-06-16T18:36:53.861227+00:00 app[web.1]: #2 0x560508f013f7
2022-06-16T18:36:53.861228+00:00 app[web.1]: #3 0x560508f015c1
2022-06-16T18:36:53.861228+00:00 app[web.1]: #4 0x560508f345c4
2022-06-16T18:36:53.861228+00:00 app[web.1]: #5 0x560508f1ef9d
2022-06-16T18:36:53.861228+00:00 app[web.1]: #6 0x560508f322e4
2022-06-16T18:36:53.861228+00:00 app[web.1]: #7 0x560508f1ee63
2022-06-16T18:36:53.861229+00:00 app[web.1]: #8 0x560508ef482a
2022-06-16T18:36:53.861229+00:00 app[web.1]: #9 0x560508ef5985
2022-06-16T18:36:53.861229+00:00 app[web.1]: #10 0x5605091c54cd
2022-06-16T18:36:53.861229+00:00 app[web.1]: #11 0x5605091c95ec
2022-06-16T18:36:53.861229+00:00 app[web.1]: #12 0x5605091af71e
2022-06-16T18:36:53.861230+00:00 app[web.1]: #13 0x5605091ca238
2022-06-16T18:36:53.861230+00:00 app[web.1]: #14 0x5605091a4870
2022-06-16T18:36:53.861230+00:00 app[web.1]: #15 0x5605091e6608
2022-06-16T18:36:53.861231+00:00 app[web.1]: #16 0x5605091e6788
2022-06-16T18:36:53.861231+00:00 app[web.1]: #17 0x560509200f1d
2022-06-16T18:36:53.861231+00:00 app[web.1]: #18 0x7fc667313b43
2022-06-16T18:36:53.861233+00:00 app[web.1]:
2022-06-16T18:36:54.061304+00:00 heroku[web.1]: Process exited with status 1

[FEATURE REQUEST] deployable on heroku free dyno or repl.it or vercel or any where can use it free & non stop scrape coursed without need personal device

Is your feature request related to a problem? Yes , for auto enrolled succeed but I'm always must be run it on my personal pc or mobile termux with so much processing percent.

Describe the solution you'd like
please make it deployable on heroku free dyno or repl.it or vercel or any where can use it free & non-stop scrape course/s & auto enroll without need personal device allways on requirement.

Describe alternatives you've considered
N/A

Additional context
N/A

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.