Installation de la bibliothèque RoboBrowser

Installation pour Anaconda :

pip install robobrowser
# -*- coding: utf-8 -*- """ Éditeur de Spyder Ceci est un script temporaire. """ from robobrowser import RoboBrowser url = 'http://pronote.lyc-valadon.ac-limoges.fr/professeur.html' browser = RoboBrowser(history=True) browser.open(url) # if you want to print the page... # print (browser.parsed) #get form form = browser.get_form(id='commentform') #fill out form form['comment'].value = 'Very interesting article' form['author'].value = "Ebbe Vang" form['email'].value = "lort@lortemail.dk" #submit form/page browser.submit_form(form) # print page print(browser.parsed)