andrei-zgirvaci / Twitch-Farmer

A bot that helps you to get more followers on Twitch
135 stars 38 forks source link

subs prime #17

Closed alanhoffer closed 5 years ago

alanhoffer commented 5 years ago

if i do this can work with twitch subs prime?

        sub_button = driver.find_element_by_xpath(
            get_page_element("sub_button"))

        sub_button.click()

        sleep(5)

        subprime_button = driver.find_element_by_xpath(
            get_page_element("subprime_button"))

        subprime_button.click()

        # wait for request
        sleep(5)
"subprime_button": {
    "type": "xPath",
    "value": "//button[@data-a-target='subscribe-with-prime-button']"
},
"sub_button": {
    "type": "xPath",
    "value": "//button[@data-a-target='subscribe-button']"
},
andrei-zgirvaci commented 5 years ago

I didn't test if it works, but you are on the right path. I guess subscribing will be harder to accomplish as you need to do additional steps in order to subscribe.