• This should get you started.

    import ui,time w=ui.WebView() w.frame=(0,0,570,570) w.load_url('https://google.com') w.present() # make sure the page has finished loading time.sleep(1) while not w.eval_js('document.readyState') == 'complete': time.sleep(1.) # using bs4 and requests to poke around, i know the textfield has a name of q # i can set the value using javascript w.eval_js('document.getElementsByName("q")[0].value="using javascript to fill in forms";') # i happen to know the name of the form is "f", i will submit the form time.sleep(1) w.eval_js('document.getElementsByName("f")[0].submit()')

    Other good searches might be "using bs4 and requests to fill in forms", or "how to use mechanize to fill in forms".

  • That's not ENTIREly true.

    Many, if not most, providers have a way to email-to-sms gateway. One could use smtplib to send an email to a number.

    Mobile carrier | SMS gateway domain | MMS gateway domain -----------------+---------------------------+----------------------- Alltel[5] | sms.alltelwireless.com | mms.alltelwireless.com AT&T[6] | txt.att.net | mms.att.net Boost Mobile[5] | sms.myboostmobile.com | myboostmobile.com Cricket Wireless | | mms.cricketwireless.net Project Fi | | msg.fi.google.com Republic | text.republicwireless.com | Sprint[5] | messaging.sprintpcs.com | pm.sprint.com T-Mobile[5] | tmomail.net | tmomail.net U.S. Cellular | email.uscc.net | mms.uscc.net Verizon Wireless | vtext.com | vzwpix.com Virgin Mobile | vmobl.com | vmpix.com

  • Pythonista posted

    for loops are used to go over items stored in a list and repeat a piece of code for each item. For example, this code:

    mylist = ["hello", "there", "how", "are", "you"] for message in mylist: print message

    creates a list named mylist that contains a few strings, then it goes over the list and prints out every item.

    while loops are a little different. They work like an if block that repeats over and over until the condition is false. For example, this code:

    import random response = "" while response != "exit": print "Your random number is:", random.randint(0, 10) response = raw_input()

    prints out a new random number every time you press Enter, until you type exit.

    (By the way, I'm assuming that you're using Python 2. If you're using Python 3, the code won't work like this.)

  • There's no way to show a video in the console, but if all you want to do is play a video file that you have downloaded from somewhere, console.quicklook() is probably the easiest way to do this.

Internal error.

Oops! Looks like something went wrong!