views:

17

answers:

1

Hello i had a project what send information using the POST method to make a request in a server app write in Python, i want to know if after i make the request i can have full access to the elements in the page?

A: 

Your question is a bit unclear.

The most popular libraries for parsing XML and HTML in Python are:

Beautiful Soup - older, but still popular

lxml - The defacto standard if you can access libxml wherever you're running your code

Using these libraries, you should be able to extract whatever you need and return it to the client.

Paul McMillan
I want to know if i can extract the information of another element inside the page when the client makes click into a submit in the form.
hidura
That sounds like a javascript problem. Perhaps you shouldn't have tagged it as Python then?
Paul McMillan
It's a python issue because when i've make the request only the server knows what elements i need to extract the information, but i want to know if i am limited to the form or i can have access to any element?
hidura
In order for this question to be answered, you need to post far more detail about what you are doing, what you want to happen, and how you have already tried to implement it.
Paul McMillan