Python 2.7: can not import name RoboBrowser How do I solve this?

0

I'm trying to run a Python script, but when importing RoboBrowser it shows me "can not import name RoboBrowser" as if it were not installed.

I installed it with pip and when executing the command pip freeze I see this framework, try with python -c "import robobrowser" and throw me the error again. I have uninstalled the roboBrowser and installed it again and it does not work so much with pip install robobrowser and easy install robobrowser.

If something helps the problem, my operating system is Windows 7.

My version of python is 2.7, the version of roboBrowser 0.5.3

This is my code:

# -*- coding: utf-8 -*-
import re
from robobrowser import RoboBrowser

browser = RoboBrowser()
browser.open('http://******')

signup_form = browser.get_form(id_='form1')
signup_form['user[ctl14$txtUserName]'].value = '***@gmail.com'
signup_form['user[ctl14$txtPassword]'].value = '1111'

print(signup_form.serialize())

browser.submit_form(signup_form)

Can someone help me with this problem?

    
asked by Diego Lopez 04.10.2018 в 00:17
source

0 answers