is there any library that does this ?
Here an example of what i want to achieve:
data = """
<form action='/'>
<input type='text' name='test'>
</form>
"""
x = buildformdata(data)
print(x)
{'test': ''}
I know how to create this using for ex. beatifulsoup, but maybe theres something done already? For example, what about converting code that Firefox or Chrome uses to build that data into python?
Here's some code that does this:
https://github.com/jmcarp/robobrowser/blob/master/robobrowser/forms/fields.py
https://github.com/jmcarp/robobrowser/blob/master/robobrowser/forms/form.py#L64