Completed

Convert PHP script to Python ( save XML file on local machine )

Hi

I need someone to convert below code in PHP into Python code.

Script is to get xml feed from php file and save on local machine where Python is running.

--------------------------------------------------

When making your request you will need to send your XML Feed ID with a POST field named user_id. Listed below is an example using php of how you can do this using the PHP CURL function

$userData=array('user_id' => 'USER_ID');

$url='[login to view URL]';

$ch = curl_init($url);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

curl_setopt($ch, CURLOPT_HEADER, 0);

curl_setopt($ch, CURLOPT_POST, true);

curl_setopt($ch, CURLOPT_POSTFIELDS, $userData);

$data = curl_exec($ch);

curl_close($ch);

Skills: PHP, Python, XML

See more: python parse xml string, convert html to xml script, python convert html to plain text, python convert xml into html, convert html to xml python, convert html to python, python xml, python convert html to xhtml, save xml file mysql php, php web interface edit xml file, save xml file database, convert php script perl, video upload convert php script, php script parse html xml, sax project save xml file, php script upload heavy csv file, php script receive post xml php, python read xml file sax, simplexml php save xml file, php simplexml save xml file

About the Employer:
( 8 reviews ) Birmingham, United Kingdom

Project ID: #17624489

Awarded to:

dineshchand73

Hello I can easily change the php code to python, simply using curl with python instead of with php. Please let me know if you have any questions thanks

$10 USD in 1 day
(13 Reviews)
2.6

4 freelancers are bidding on average $21 for this job

$25 USD in 1 day
(4 Reviews)
2.1
$25 USD in 1 day
(0 Reviews)
0.0
joesingo

Hi, I have extensive experience with both PHP and Python. I can work in Python 2 or 3 depending on your requirements. I have written lots of scripts that download/save files to the local filesystem with Python, s More

$25 USD in 1 day
(0 Reviews)
0.0