Search code examples
pythonauthenticationweb-scrapingget

How Get Data from a WEB with simple Login? No pass


How is possible to automate get this data in python or some webscraping The page is the next, the loggin is simple, without password:

http://web.directemar.cl/pago_bci/boton_pago.html

rut: 82728500-5

And then go to this page:

https://bel.bci.cl/cl/bci/aplicaciones/directemar/vistas/vistaInicio.jsf

VIEW OF THE WEBPAGE


Solution

  • Try to use selenium library and bs4. You can easily paste your password and press buttons in the web-page with functions like:

    from bs4 import BeautifulSoup
    from selenium import webdriver
    driver = webdriver.Safari()
    driver.get("http://web.directemar.cl/pago_bci/boton_pago.html")
    button = driver.find_element_by_id('YourElement')
    button.click()