Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help me make a comment on youtube
#5
(Jun-21-2019, 12:22 AM)metulburr Wrote: Thats not in your code though. (im too busy to write up code myself to log in)
add this for a login method:
    def login(self):

        # URL for google login
        url = "https://accounts.google.com/servicelogin"

        try:
            print("Passing URL to Browser...")
            self.browser.get(url)
            print(" ")
            time.sleep(4)
            print("What is your Google email?")
            email = raw_input("")
            print("What is your Google password?")
            password = raw_input("")
            print("Passing infomation to Browser...")
            email_input_box = self.browser.find_element_by_id("identifierId")
            time.sleep(.5)
            email_input_box.send_keys(email, Keys.ENTER)
            time.sleep(6.5)
            password_input_box = self.browser.find_element_by_class_name("whsOnd")
            time.sleep(.5)
            password_input_box.send_keys(password, Keys.ENTER)

        except Exception as exception:
            print(self.error)
            print("there was an exception when passing information to browser: ")
            print(exception)
Reply


Messages In This Thread
Help me make a comment on youtube - by caarsonr - Jun-20-2019, 10:15 PM
RE: Help me make a comment on youtube - by caarsonr - Jun-20-2019, 11:26 PM
RE: Help me make a comment on youtube - by caarsonr - Jun-21-2019, 01:10 AM
RE: Help me make a comment on youtube - by caarsonr - Jun-21-2019, 05:17 PM
RE: Help me make a comment on youtube - by caarsonr - Jun-21-2019, 07:49 PM
RE: Help me make a comment on youtube - by caarsonr - Jun-22-2019, 04:48 PM
RE: Help me make a comment on youtube - by caarsonr - Jun-22-2019, 11:52 PM
RE: Help me make a comment on youtube - by caarsonr - Jun-23-2019, 02:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  parsing comment tag ian 2 3,045 Jan-22-2018, 03:38 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020