Reuse sessions using cookies in Python Selenium

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2024

ความคิดเห็น • 40

  • @muhammadhamadjamal681
    @muhammadhamadjamal681 2 ปีที่แล้ว +7

    Bro you literally saved me!!

  • @dailycsgoclip
    @dailycsgoclip ปีที่แล้ว +1

    Hi! Thank you so much for the video! Can we use this with multiple browsers? Each remembering their sessions and cookies?

  • @kevinmontero4158
    @kevinmontero4158 2 ปีที่แล้ว +1

    What font style and theme are you using in VS Code? It looks neat and clean! :)

  • @animewould2005
    @animewould2005 ปีที่แล้ว

    'chrome' is not recognized as an internal or external command,
    operable program or batch file.

  • @KhalilYasser
    @KhalilYasser 2 ปีที่แล้ว +2

    Thank you very much. It is all Ok as for the first part and the pickle file is created. The second part launches the chrome and navigates to the url but didn't login (I tried to add driver.refresh()) but this doesn't work too. Is it necessary to launch the localhost as for load_cookie.py file?

    • @developertimeline
      @developertimeline  2 ปีที่แล้ว

      Hi, I will take a look to this project and let you know

    • @KhalilYasser
      @KhalilYasser 2 ปีที่แล้ว

      @@developertimeline Thanks a lot for your interest.

  • @jelaleddinsultanov507
    @jelaleddinsultanov507 3 ปีที่แล้ว +1

    how to get chrome --remote-debugging-port? how to install this command on MacOS?

    • @jelaleddinsultanov507
      @jelaleddinsultanov507 3 ปีที่แล้ว

      @Carlos Alvarez yes your answer seems to be right, But however I tried with it but it failed to run the command

  • @hirensolanki6581
    @hirensolanki6581 2 ปีที่แล้ว +1

    please make a video on how to bypass captcha in selenium

    • @developertimeline
      @developertimeline  2 ปีที่แล้ว

      In my experience, its nearly impossible to bypass captcha. However, you can use captcha solver services by integrating your bot with their API. The usual response takes about 7 seconds max.

  • @ollie_the_wandererli7523
    @ollie_the_wandererli7523 2 ปีที่แล้ว +1

    love it

  • @mhdsbk
    @mhdsbk 3 ปีที่แล้ว +1

    even after loading the cookies , site still asks to login. i have checked browser settings and i could see cookies there

    • @konyi449
      @konyi449 3 ปีที่แล้ว

      Try refreshing the web

  • @prabinchand5839
    @prabinchand5839 3 ปีที่แล้ว

    same can be done in FACEBOOK TOO ??? WE WANT IN NEXT VIDEO

  • @nikshepamin8570
    @nikshepamin8570 2 ปีที่แล้ว

    its showing
    AttributeError: module 'undetected_chromedriver' has no attribute 'install'

    • @digizaki919
      @digizaki919 ปีที่แล้ว

      Same error

    • @thariquehaneef7058
      @thariquehaneef7058 ปีที่แล้ว

      i believe there are recent update to the undetected-chromedriver module, where install functions and removed

  • @sk8rgu1
    @sk8rgu1 3 ปีที่แล้ว

    for some reason, the command in the terminal says chrome is not recognized as an internal or external command. I need some help!

    • @developertimeline
      @developertimeline  3 ปีที่แล้ว

      What OS u r using?

    • @sk8rgu1
      @sk8rgu1 3 ปีที่แล้ว

      @@developertimeline Windows

    • @developertimeline
      @developertimeline  3 ปีที่แล้ว +1

      You need to add it in (Path Variable) Environment Variables.
      Look where the chrome.exe installed.
      For me the chrome.exe installed in => C:\Program Files\Google\Chrome\Application
      So , search for environment variables and you'll see "Path" variable.
      Double click it and new window will open for updating. Then simply add full location of parent directory where chrome.exe placed as I mentioned above.
      Finally, reopen cmd and test again

  • @oliverli9630
    @oliverli9630 2 ปีที่แล้ว

    nice!

  • @prabinchand5839
    @prabinchand5839 3 ปีที่แล้ว

    can u login with cokkies? if user after some hrs logs out.

    • @developertimeline
      @developertimeline  3 ปีที่แล้ว +1

      I tried it with upwork login and it worked.

    • @prabinchand5839
      @prabinchand5839 3 ปีที่แล้ว

      @@developertimeline please make video and upload

    • @prabinchand5839
      @prabinchand5839 3 ปีที่แล้ว

      @@developertimeline Its says : ImportError: cannot import name 'Options' from 'selenium.webdriver.chrome'
      but i have already installed selenium on my computer.

    • @developertimeline
      @developertimeline  3 ปีที่แล้ว

      @@prabinchand5839 Can you just run very simple program with Selenium? Open a web page for example. If not then it's not installed properly and I guess you are using virtual env right?

    • @prabinchand5839
      @prabinchand5839 3 ปีที่แล้ว

      @@developertimeline nope, i am. Not using virual env.

  • @alexandercharles3064
    @alexandercharles3064 2 ปีที่แล้ว

    😭 nonetype object is not iterable

  • @eugenekopylov7118
    @eugenekopylov7118 ปีที่แล้ว

    dead code link

  • @neerajsharma-dc1fr
    @neerajsharma-dc1fr 3 ปีที่แล้ว

    Hii, it's my first ever comment in you tube over any video. I really need help in similar kind of login, but in whatsapp web. I have tried too many ways but still not able to store cookies and login later.
    please help
    Thanks

    • @developertimeline
      @developertimeline  3 ปีที่แล้ว

      Whatsapp Web? Are u going to hack someone? :D I will research about it but I think Whatsapp will not allow that kind of action.

    • @neerajsharma-dc1fr
      @neerajsharma-dc1fr 3 ปีที่แล้ว +1

      @@developertimeline Thanks for your reply, actually i want to make an automated system using whatsapp and selenium, but i don't want to do scanning QR again and again. So if possible i want to store cookies or may be other local storage if needed. And I also want to share that, in normal way i am able to save cookies from facebook and able to login after sometime in different selenium instant but in whatsapp web it is not working.

    • @mehul14290
      @mehul14290 3 ปีที่แล้ว

      @@neerajsharma-dc1fr +1

    • @GAMEOLOGIST
      @GAMEOLOGIST 3 ปีที่แล้ว

      @@neerajsharma-dc1fr we need that

    • @neerajsharma-dc1fr
      @neerajsharma-dc1fr 3 ปีที่แล้ว

      @@GAMEOLOGIST ??