Find Jobs
Hire Freelancers

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

$10-30 USD

Completed
Posted over 5 years ago

$10-30 USD

Paid on delivery
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);
Project ID: 17624489

About the project

3 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
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
5.0 (30 reviews)
3.2
3.2
3 freelancers are bidding on average $20 USD for this job
User Avatar
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, so I think I would be a great fit for this job. I look forward to working with you. Joe
$25 USD in 1 day
5.0 (1 review)
0.9
0.9

About the client

Flag of UNITED KINGDOM
Birmingham, United Kingdom
4.8
31
Payment method verified
Member since May 2, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.