$0.02

Autofill website forms in Python

Ask a question+
0

Hi there! Does anyone know how to fill out forms on websites in Python? (eg. With the “checkmark”, “password” and “text” tag in HTML)

Please check the answer(s) posted and mark the one that best answers your question as the answer.

Community Cop
add comment

1 Answer

0

you can use python with selenium to automate filling forms

from selenium import webdriver

driver = webdriver.Firefox(...)  # Or Chrome(), or Ie(), or Opera()
browser.get('https://tube2.me/login')
username = driver.find_element_by_id("username")
password = driver.find_element_by_id("password")

username.send_keys("YourUsername")
password.send_keys("Pa55worD")

driver.find_element_by_name("submit").click()
abdokb 50
add comment

Your Answer