Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Imporvement challenge!

So I have this code to login to twitch but does anyone know how to get it to enter a livestream and talk in chat?

Code
import mechanize

br = mechanize.Browser()
br.set_handle_robots(False)
br.open("htps://secure.twitch.tv/login")
br.select_form(nr=1)
br['login'] = "Login"
br['password'] = "Pass"
br.submit()

if "wrong username or password" in br.response().read():
    print "Wrong username or password"
else:
    print "Logged in"

I can't post links yet so add the t in the twitch link :P


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by KhamulMay 30, 2015 08:45 AM 13 387 May 30, 2015 08:45 AM
Last Post: Khamul
[Shell] by WOLGAMay 8, 2015 07:56 AM 84 1,455 May 8, 2015 07:56 AM
Last Post: White Light
[Python] by SupreemJuggaloDec 24, 2013 05:20 PM 14 451 Dec 24, 2013 05:20 PM
Last Post: Melkor333