Find Jobs
Hire Freelancers

tracking status parser: USPS(repost)

$30-100 USD

Cancelled
Posted over 14 years ago

$30-100 USD

Paid on delivery
See below. ## Deliverables I will be selected two coders/bidders. Both of you will do the same job, and both of you will check each others work. This guarantees completion and testing from another developer. The job: I have a class that looks like this: $USPS = new USPS_STATUS (); $TrackingNumbers = array ( array ( "tracking_number" => "822h34k2j34234" ), array ( "tracking_number" => "822h34k2j34235" ), array ( "tracking_number" => "822h34k2j34236" ), array ( "tracking_number" => "822h34k2j34237" ) ); $USPS -> SetTracking($TrackingNumbers); $USPS -> UpdateTracking(); //runs some background requests to USPS and parses the data $Results = $USPS -> GetTrackingResults(); var_dump ($Results); What do you need to do? You need to write the parser function, into which I will pass the returned HTML data from USPS from here You will return ALL the steps, and all possible information using REGULAR EXPRESSIONS, the function will return an ARRAY of all the status information about the INDIVIDUAL tracking number. I will LOOP through all the tracking numbers and call that function, and that function (yours) will return all known information about the tracking number (in English) To recap, you are writing a single function, into which HTML data is passed, out of which you will return a single array, with the tracking number as the KEY, with subkeys of all the information about the tracking number. The var_dump($Results) should output this (but with real values, one entry per tracking number, with tracking number as the array key. ["tracking_number_as_key"]=> string(0) "" ["signed_for_by"]=> string(0) "" ["ship_date"]=> string(0) "" ["delivery_date"]=> string(0) "" ["reference"]=> string(0) "" ["purchase_order_number"]=> string(0) "" ["shipment_id"]=> string(0) "" ["invoice_number"]=> string(0) "" ["destination"]=> string(0) "" ["service_type"]=> string(0) "" ["weight"]=> string(0) "" ["status"]=> string(0) "" ["steps"]=> array(0) { } 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). 64bit linux, php5 < 5.1, no special plugins, regex only. ## Platform 64bit linux, php5 < 5.1, no special plugins, regex only.
Project ID: 2981151

About the project

2 proposals
Remote project
Active 14 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
2 freelancers are bidding on average $34 USD for this job
User Avatar
See private message.
$34 USD in 1 day
5.0 (33 reviews)
4.8
4.8
User Avatar
See private message.
$34 USD in 1 day
5.0 (66 reviews)
4.5
4.5

About the client

Flag of UNITED STATES
United States
5.0
201
Member since Jan 19, 2004

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.