Link to home
Start Free TrialLog in
Avatar of ashwin86
ashwin86

asked on

Need a python script

Hi Experts,

I need to create a script to access a webpage and update users on it. I am not able to get started.
I will be using xml with python but are there any other recommendations?
Avatar of Mark Brady
Mark Brady
Flag of United States of America image

Can you elaborate on how the webpage works. Is this on the same webserver/domain. How do you propose updating information. Are you wanting to POST to the page with data? If you can be a bit more specific I'm sure I can get you started. I do this for a living.
Avatar of ashwin86
ashwin86

ASKER

yes this internal and in the same network please let me know if more info is requiret
sorry missed the other point yes I want to post data to a webpage has a username,and password for login
ASKER CERTIFIED SOLUTION
Avatar of Mark Brady
Mark Brady
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Mark,

Thank you for this help. Could you please let me know why dedent is required to pass values to Val?  

from textwrap import dedent
> def some_func():
>    x, y = process_something()
>
>     val = dedent("""\
>     <xml>
>      <myThing>
>        <val>%s</val>
>        <otherVal>%s</otherVal>
>      </myThing>
>    </xml>
>    """) % (x, y)
>
>    return val