Web automation in python for beginners

Sdílet
Vložit
  • čas přidán 27. 01. 2020
  • Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
    All the learning resources such as code files, documentations, articles and community discussions are available on our website:
    chaicode.com/
    You can find our discord link, github link etc on the above website.
    Twitter/X link: x.com/hiteshdotcom
    Discord link: hitesh.ai/discord
    Learn React with 10 projects: • Let's learn react from...
    Learn Docker: • A practical guide on D...
    Learn Kubernetes: • Complete Kubernetes Co...
    How does a browser works: • How does a browser wor...
    How nodejs works: • How node JS works | En...
    Learn Redux-toolkit: • Learn Redux Toolkit in...
    Learn NextJS: • Nextjs Full stack course
    Learn Typescript: • Why to learn Typescript
    Learn Javascript: • Welcome to new JavaScr...
    Learn React Native: • React Native Mastery: ...
    Learn Zustand: • React state management...
    Learn Golang: • How to get started wit...
  • Věda a technologie

Komentáře • 766

  • @bbf0ab08cb44becfec
    @bbf0ab08cb44becfec Před 4 lety +511

    "If you take out the fun, it's not fun anymore" wise words indeed.

    • @xichenli2001
      @xichenli2001 Před 3 lety +8

      Indeed, "if you take out all the fun, whats gone leftover gonna be Notfun"

    • @whatnothin1401
      @whatnothin1401 Před 3 lety +1

      just wanted to state this ... i am amazed :D

    • @vaibhavtiwari6540
      @vaibhavtiwari6540 Před 3 lety +3

      Yes, "There is no fun, without fun."

    • @souravkumar5774
      @souravkumar5774 Před 3 lety +10

      Every 60 seconds in Africa, a minute passes.

    • @abhay6276
      @abhay6276 Před 3 lety

      It's same applicable for life...

  • @MurrayRide
    @MurrayRide Před 4 lety +10

    This is honestly the best most simple tutorial on this subject! I am going to be watching all of your Python tutorials, I am a statistician who has switched away from R to Python and your videos are the perfect introduction to self learn on any topic.
    Thank you so much for your time in making these!

  • @omkhard1833
    @omkhard1833 Před 3 lety +3

    Bieng a CCNA aspirant i am too happy to listen when Tino Sir says "I am not a programmer guy i grew up with switch routers and firewaalls" literally touch my heart.... keep up the great work sir

  • @KamranKhan006
    @KamranKhan006 Před 4 lety +53

    Clicked this video randomly, bro you are doing a lovely job explaining everything in such a neat and tidy way. Thank you! more power to you!

  • @kshirodpatel
    @kshirodpatel Před 4 lety +181

    We are fortunate that we are living in an era where teacher like Hitesh is teaching us. Sir your quality of teaching is awesome. Love from bhubaneswar, India.

  • @sheelakaur6319
    @sheelakaur6319 Před 3 lety +4

    Thank you Hitesh, you just demo’d a complex subject in a fun and straight forward way. I look forward to your other videos!!

  • @larryg.6512
    @larryg.6512 Před 4 lety +5

    Great topic and video. Thank you very much. Really needed this as I want to know how to apply what I’m learning and have fun, including with automation, and not just be “dry” about it. Looking forward to learning more from you great job!

  • @tocodelray
    @tocodelray Před 3 lety

    I've been struggling to learn Python for exactly that reason - boring boring boring. Finally I learned that this is the way to go: pick a fun project and then learn what you need to accomplish it. Thanks for the great videos!

  • @silentxcure
    @silentxcure Před rokem

    im so glad i found this. I do a lot of inputting in my current job, so i am trying to create a program where i can have all my work inputted automatically. This is a great first step. thanks so much.

  • @manofspork1135
    @manofspork1135 Před 3 lety

    Hitesh! I've spent my time doing competitive programming, I just learned piles of useless theory and programmed just to analyze data. I lost all motivation to program and actually began to hate computer science. You have reignited my interest in programming again! I haven't felt this way in a very long time

  • @champi-metal
    @champi-metal Před 4 lety +6

    Cool man.
    Always keep programming fun. It gives joy when you use programming for personal stuff.

  • @lobsangbarriga5324
    @lobsangbarriga5324 Před rokem

    Brooo thank you very much for this, I wanted to automate some tasks for a long time and with this knowledge I finally managed to do it, have an amazing day!

  • @saty
    @saty Před 2 lety +3

    That's great. Now I understand why we should not click random things , looking very tempting 🤣🤣🙂

  • @lynic-0091
    @lynic-0091 Před 4 lety

    Ho-ly shit I had no idea this was possible, I'm using Cypress in Gitlab CI, combined with a Python script which notifies our team if a test fails. But you're telling me I can ditch Cypress and code everything myself? You're effing right, this is what makes programming EPIC. Doesn't surprise me I was already subscribed to this channel. Thanks a lot!

  • @timtom3403
    @timtom3403 Před 4 lety

    sir i have some doubts ,i had watched your python web automation video,i tried to automate google meet,everything is working well except when i join the meet with the join id,i switch to the child node correctly and interacted with evry element,algood,except the alert box on the chld window can not be closed,it says no such alert,the alert requests for cam mic permission whcih in want to dismiss,Stuck for two days? used wait methods too still no luck?any suggestion?

  • @testtest7957
    @testtest7957 Před 4 lety

    Please Hitesh sir. Make more videos on web automation with python because the way you teach us is very simple and understanding. Please make more videos. As I am a software tester and using Java but wanted to move with python automations. And your tutorial is what makes me excited to do it. Please sir it's my humble request.

  • @ryanrumsey2830
    @ryanrumsey2830 Před 3 lety

    Hello Hitesh. Thanks for all your videos. I have a question for you. How would I use Selenium to bring up a hyperlink that is in an excel box, click a box, enter a date in another box, then go back to excel and do the same thing but with the next hyperlink listed ?

  • @gauravvishwakarma____3330

    Great CZcams channel for providing simple way of technology

  • @rajesh_avula
    @rajesh_avula Před 4 lety

    Can you please tell me the editor which you are using and how you are getting that auto suggestions for find_element_by_xpath. Because I'm using vscode and I'm not getting any suggestions

  • @9696viktor
    @9696viktor Před 4 lety

    Hello,
    My works involves a lot of browser report fill regarding CZcams Copyright Strikes. The problem is that Selenium opens a new browser everytime, and I can not bypass the CAPTCHA window or the login window. I wonder if it's possible to control a browser already opened?

  • @uscjake868
    @uscjake868 Před 2 lety

    I 1000% percent agree with you. If you cannot show students how you can do practical things with programming they get bored. Simple data in/out is not satisfying. Show them how to webscrape a site to check prices of their favorite shoes. That is a real application that is satisfying and can make you money!

  • @sweetmelon3365
    @sweetmelon3365 Před 3 lety

    great tutorial!! i like the energy with which you teach
    btw, is there a way to make the whole process start within an existing open browser? maybe in a new tab, or even on the same tab?

  • @iamkzonjames
    @iamkzonjames Před 3 lety

    How can I use/rotate proxies from a .txt file everytime a new webdriver opens up? Can you help me pls. thanks!

  • @benjaminjose7354
    @benjaminjose7354 Před 3 lety

    Help : Thanks Sir for your videos , do you know if there is a way to capture the screenshots in selenium along with the url ? When am capturing the screenshot the url is not included.. please help.

  • @ribhisaleh87
    @ribhisaleh87 Před 2 lety

    Hi, thanks for this amazing automation video! I have a question, I'm learning python now and trying to learn automation with my work. so a project im thinking to try to automate is copy paste leads from a web app called zoom info that i use, and pase to a specific excel sheet i use. usually I copy paste 200-400 data a day. can this process be automated in python script also using selenium or maybe pyautogui? would appreciate your advice and help with this, thanks in advance!

  • @firstname732
    @firstname732 Před 3 lety +2

    Is there a way i can use the automation on my main chrome browser?

  • @josecracklol9735
    @josecracklol9735 Před 2 lety

    Yo i got a doubt whenever my automated browser opens it automatically closes, a temporary solution that i found was to use the “time” module and make it sleep for x seconds. Any suggestions on my problem?

  • @themeparkchallengeofficial

    I'm probably just very stupid, but can somebody help me anyways? After opening my terminal on Windows 10 and typing in "pip install selenium", I got a synthax error pointing to "install":
    File "", line 1
    pip install selenium
    ^
    SyntaxError: invalid syntax
    Do I need to download a file for Selenium manually first? Or do I use the terminal wrongly? Still a beginner, so help would be really appreciated... :D

  • @iamhritikpawar
    @iamhritikpawar Před 4 lety

    Thanks for that. I made a automatic wallpaper downloader. Since I manually change my wallpaper daily . Now it will do work for me.

  • @wellyesbutno5639
    @wellyesbutno5639 Před 3 lety

    i keep getting element not interactable for the xpath of searchbutton I've tried copying and pasting both xpaths the icon and the button just to make sure and for both of them i get the error message

  • @raghawpanpaliya7477
    @raghawpanpaliya7477 Před 3 lety

    I am getting a problem. I am using edge driver. So, when i did all that code it only started the browser and not actually opened the website (youtube). How do i solve this?

  • @nazwaarifahikhsan2971

    Hi sir, i've been trying to do that with opening spotify, but suddenly the chrome got force closed, do you know how to handle it? thank you

  • @abhasvohra4914
    @abhasvohra4914 Před 3 lety

    I m shocked that I haven't subscribed you yet..
    Killed the subscribe button already.. kudos brother.. keep doing whatever you are doing.. cheers!! ✌

  • @suryamadhav5208
    @suryamadhav5208 Před 4 lety +5

    Ur happiness and joy in programming is so contentious .

    • @cats-uk
      @cats-uk Před 3 lety

      Do you mean “contagious”?

  • @01DrRar
    @01DrRar Před 2 lety

    question. so have this working perfectly in Pycharm but can't get it to run in Cmd or as a .py file until I open it in Pycharm. any help on fixing this I want to pass to friends for automation.

  • @seanmccormack179
    @seanmccormack179 Před 4 lety

    i cant get it to find the searchbox when i run it in the terminal, i have exactly what he has on screen copied but still wont find the search box any ideas?

  • @jayjain6204
    @jayjain6204 Před 4 lety +3

    We really need teachers like you 👌

  • @JatinChhabra
    @JatinChhabra Před 3 lety

    Its simple for a master like you, but its awesome for a guy like to who bring more productivity with such awesome code. That was an really interesting tutorial Hitesh. Thanks for sharing it.

  • @electrichimp
    @electrichimp Před 4 lety

    Would you recommend python + selenium over javascript + puppeteer? It's my understanding that you get more control with the later.

  • @n0b0dyid41
    @n0b0dyid41 Před 3 lety

    how to run the automation command in browser that we are using now, not open the new browser ?

  • @harshitaggarwal4981
    @harshitaggarwal4981 Před 3 lety

    Your videos just removed my tension to make project for my final sem loved ur videos ....more power to you♥️😇

  • @amrdel2730
    @amrdel2730 Před 4 lety

    what about if iam learning python by using an online python editor and debugger and not installing python on my windows pc ?? can i do atomation from programs i will write on the riple online editor ??

  • @user-lh4hv3tx8b
    @user-lh4hv3tx8b Před 4 lety

    What is the difference between finding by XPath vs find by css selector? Which one is better to use?

  • @jdragon8184
    @jdragon8184 Před 3 lety +1

    finally a real video worth watching ,
    i enjoyed my ds course and now for reward i will do this , ps : all my friend are doing web dev and i didn't want that so selenium helped

  • @cmarotta82
    @cmarotta82 Před 2 lety

    Thanks for help. Any advice when the Forms elements are not showing up under Inspect? .. like on TypeForm

  • @TheJayeshmotwani1
    @TheJayeshmotwani1 Před 4 lety

    I was planning to scrap data from a website but the issue with it was the URL when copied and pasted separately lead me to a different page altogether. I beleive using selenium should solve this however, are you aware of a scenario where web automation through selenium won't work?

  • @akashzawar8718
    @akashzawar8718 Před 4 lety

    Apart from this singe page code , do u have any project which will help learn how to handel bulky projects files and interaction between them.

  • @venkatakalki3892
    @venkatakalki3892 Před 2 lety +2

    Hi sir,
    I'm getting this problem " find_element_by_xpath is deprecated use instead find_by_element "
    please help me on this

  • @SankarshanGhosh
    @SankarshanGhosh Před 4 lety

    Is there any way to convert this .py file into an exe file? I’ve heard about pyinstaller.

  • @VikTheGreat360
    @VikTheGreat360 Před 3 lety

    That background wallpaper is SO COOL!!!

  • @suchithraab8515
    @suchithraab8515 Před 3 lety

    how do we add employee details(photo, role, LinkedIn profile link) from google sheet to wordpress? it should be update something like how companies team pages look. please reply me . I tried searching in google but i didn't get it.

  • @prashantkumar2963
    @prashantkumar2963 Před 4 lety

    what does the driver.find_element_by_x_path return.....and can a method return an object.

  • @akashanurag7855
    @akashanurag7855 Před 3 lety

    Hi hitesh.. can you explain why we have a message in chrome 'chrome controlled by automation ' how can we remove it. Does it means youtube will allow scraping for the particular ip address

  • @abdulajees9346
    @abdulajees9346 Před 4 lety

    How can i avoid the pop up coming in browser when running the program?

  • @nachtfuchs7711
    @nachtfuchs7711 Před 3 lety

    This is exactly what I was looking for. I got to learn that from scratch but it will be worth it

  • @navinraja3812
    @navinraja3812 Před 4 lety

    what is the text editor you are using sir? may i use it for win 10?

  • @akshaypendyala
    @akshaypendyala Před 4 lety +1

    Now this is what you call fun!
    I am gonna try it today!

  • @rohan1002
    @rohan1002 Před 4 lety +3

    You are the real face of professionalism.

  • @thrinathreddy3414
    @thrinathreddy3414 Před 4 lety

    How to get a link that which is frequently change and it's is
    Inside inner HTML body and in Iframe
    Help me PLZZ

  • @verinen_runkkari5652
    @verinen_runkkari5652 Před 4 lety +1

    Very clear and informative video, keep it up! Definitely going to learn more about selenium :D

  • @ijbarraza
    @ijbarraza Před 4 lety

    Im a real beginner, I downloaded Anaconda to write my scripts but I have no code assistant for completion like you do. Which idle would you recommend to have this feature?

  • @nagol1493
    @nagol1493 Před 4 lety

    How can I submit a textarea if there is no button. In order to submit you press enter not click a button.... I can't find it anywhere

  • @e10etcreature43
    @e10etcreature43 Před 2 lety

    Using xpath is my biggest take away thanks a lot , FUN always.

  • @MichelPWeber
    @MichelPWeber Před 4 lety

    How does it work when the page is up but the element isn't rendered right away?

  • @aniceguy5804
    @aniceguy5804 Před 4 lety

    Watching and loving your contents since very starting of this channel

  • @CamKnoppMusic
    @CamKnoppMusic Před 4 lety +2

    Just finished 4 years of computer science in college and probably 99% of it was just boring stuff. I feel like they could inspire their students to be passionate about code if they taught cool things like what you're teaching, but instead they just make students do boring projects year after year. Great video!

  • @agungsptr_
    @agungsptr_ Před 3 lety

    Hi. I want ask how to select element in selenium if the class name of element has been hashed ? Like in instagram and other

  • @somerandomfatguy.3384
    @somerandomfatguy.3384 Před 4 lety

    Printing "*" patterns with while loop I'm stuck I understood the simple concept but can't make complex shape out of it..

  • @adeltahmid_
    @adeltahmid_ Před 4 lety

    Hi sir.I am Adel Tahmid from Bangladesh and I am only 15. I am really inspired by your videos and I learned a lot from them

  • @yosis1117
    @yosis1117 Před 4 lety

    loved the positive approach , problem is once you learn all that and want to find a job as an automation tester , the interview process will contain mostly programming problem solving questions using algos , these are super hard for me to master/practise(not fun at all). did anyone experience that while job hunting?

  • @dhileepshyl
    @dhileepshyl Před 3 lety

    Hello is it possible to switch between multiple chrome windows bro ?

  • @shaheerkhan5171
    @shaheerkhan5171 Před 3 lety

    What theme are you using in vs code

  • @puneethnaika
    @puneethnaika Před 4 lety

    hi hithesh sir
    I wanted to no which is best language for building andriod apps

  • @seyitilkturk
    @seyitilkturk Před 4 lety

    How can I setup intellisense for Selenium Webdriver on VS Code like this video?

  • @ppandolff9038
    @ppandolff9038 Před 4 lety +1

    "If you take out the fun element, it's not fun anymore"
    That's some logic right there

  • @schlechtestergtaspielerdek3851

    If i run the skript everything works, until yt wants me to logg in. How can I work around this?

  • @dhruvbhartia6655
    @dhruvbhartia6655 Před 4 lety +29

    Awesome! This made me think that how interesting my life can actually be. Thanks a lot for this video 😊.

  • @maricelfabroanga-angan6112

    Sir, what code editor did you used in this video?

  • @jaydenlsf
    @jaydenlsf Před 3 lety

    How to avoid pop ups chrome as it would completely stop selenium from moving on to do the next action?

  • @yashprajapati5023
    @yashprajapati5023 Před 4 lety

    which framework did you use for writing automation.py ?

  • @aakashjana6225
    @aakashjana6225 Před 4 lety

    You did this all not just through programming but with the help of Python and its superb packages. In Java this could have been quite cumbersome.😉

  • @parveezshariff5045
    @parveezshariff5045 Před 4 lety

    Hello Mr. Hitesh,
    I am new to selenium, tried to automate whatsapp message, the xpath value changes every time when fresh browser opens up. Can you please help in how to fix it.

  • @razor8629
    @razor8629 Před 2 lety

    I am trying to create a web browser using your video. It worked good, I can connect to my Disney+ account but the issue comes when I try to play a video.
    It's seems that Dineyplus blocked access if it doesn't recognise the browser ?
    Or a library PIP is missing ?
    Could you help please ?

  • @davidnewell7242
    @davidnewell7242 Před 3 lety

    hi not working for me im getting
    line7 searchbox.send_keys, line 477 in send_keys self._execute(command, params), line 633 return self._parent.execute( comman, params) and more
    able to pull up the web site but that is it

  • @MattLeitholt
    @MattLeitholt Před 3 lety +1

    This video gave me the excitement to continue learning about Python. I am headed to my desktop now to play 😁

  • @XxMissingDataxX
    @XxMissingDataxX Před 4 lety

    How do you set up a keyboard enter ?

  • @awaraamin9670
    @awaraamin9670 Před 4 lety

    Well done Hitesh, please keep sharing your knowledge with us. I enjoyed it.

  • @tarush_saxena
    @tarush_saxena Před 4 lety

    sir how come you don't put path of exec chrome driver? plz tell

  • @MayankGupta-te3tn
    @MayankGupta-te3tn Před 4 lety

    Hi Hitesh,
    Can we execute such Python files in Background, like without seeing the browser if we have to fill some web forms?
    please guide if possible.
    Thanks! :)

  • @MohsinKhan-sq6dq
    @MohsinKhan-sq6dq Před 3 lety

    That's a great tutorial for a beginner. I'm going to make something really useful after learning this. Thanks a lot!!!

  • @rraviteja
    @rraviteja Před 3 lety

    Hi Hitesh,
    Can you please tell If I run this on google collab it is giving error. Can you tell me how to run this in google collab.

  • @Sasha-mz8ep
    @Sasha-mz8ep Před 2 lety

    Hi, every week I get a audio web link to add to my church's website. Is it possible to automate this process using selenium/python?

  • @shauraysingh2563
    @shauraysingh2563 Před 4 lety

    So it feels like Hitesh sir is actually a big fan of standing desks !

  • @Despite_Myself_Redeemed

    This video is absolutely amazing and has really helped me alot. I haven't added a comment yet so I just want to say that this video has helped me so much and I would recommend it to anyone who wants to learn Web automation in python! Thank you so much!
    Edit: For firefox driver = webdriver.Firefox() works.

  • @Ebenenstil
    @Ebenenstil Před 2 lety

    Very beautiful video. Thank you for the short and, above all, effective introduction to the topic of Web Automat

  • @aniketbhalla1521
    @aniketbhalla1521 Před 4 lety +1

    Pls keep on posting such fun coding videos. I really enjoyed it a lot and executed what you have teached in this lesson.🥰🥰🥰

  • @automateboringstuffwithraj

    How to continue code if the given element not found, bcoz its throwing error as of now

  • @Ethanhunt8900
    @Ethanhunt8900 Před 3 lety

    Hi bro your videos are nice and ur way of looking the code is in the next level. Even I don't like the old same pattern of learning the code. keep doing this. Love from Coimbatore :)

  • @Anonymoususer-um6yr
    @Anonymoususer-um6yr Před 3 lety

    I tried the same ,but send_keys() dosent work for me. Ive tried click,clear and then send but it still doesn't work. Any suggestions?

  • @shouvik6933
    @shouvik6933 Před 3 lety

    which python editor do you use