Matlab to async Python conversion

Web, Mobile & Software Dev Other - Software Development Posted 2 years ago


More than 30 hrs/week
Less than 1 week

Intermediate Level

I am looking for a mix of experience and value


If you're knowledgeable in both Matlab and Python, then read on!

I have a Matlab script comprising various functions (running locally on my laptop) that I'd like to scale up, locate remotely on a server and automate.

The script communicates via API with a dropbox storing both zipped HTML files and data in JSON format, and via JDBC to a MySQL database instance (RDS) containing indexes, html & domain information and filename/location information for those JSONs.

My idea is to convert the Matlab code to Python, as I'll be doing further processes on the stored feature data using NumPy and SciPy over the next few months. Also it'd be easier for me to dip into and add features to the code down the line (I'm currently learning Python - and not very Java/C++ savvy).

What the Matlab script does
It basically extracts features from each HTML file from a chosen previously- crawled domain by parsing the HTML contents for DOM elements (it currently uses jSoup - Java library called by Matlab).

Example features (of about 113) are:
    'Maximum length of h3',
    'Average length of h3',
    'Number of text characters in html',
    'Title total number of rare words',
    'Title total number of syllables'

The HTML files are extracted from zip files on the remote dropbox, 'scanned' by jSoup and the parsed feature values are then arranged into a Matlab cell (html 'Id' on one axis, features the other, and a grid full of integers inbetween) which is converted to JSON format and then stored back onto the same remote dropbox, with the MySQL index updated.

The goal
I'd like the converted program to run on an EC2 server, in an asynchronous / non-blocking / parallel fashion if possible and periodically check which jobs need to be run by looking at the MySQL database to see if new domains have been added or re-crawled recently- and then go ahead with those required.

I will supply the full Matlab code and provide guidance throughout. I prefer to work through github and on a task by task basis, with agreed estimated timing before each task, and a review time post task to fix bugs.

This may help: I've spotted Twisted - a multithreaded async python framework
Also - Beautifulsoup, a Python HTML parser.
It'd be a plus if you're familiar with either of these or similar.


  • Other Skills:

Activity on this Job

Last Viewed by Client: 2 years ago

Invites Sent: 0

Unanswered Invites: 0

Hired: 1

About the Client

(5.00) 7 reviews

United Kingdom
Richmond 09:10 PM

12 Jobs Posted
92% Hire Rate, 1 Open Job

Over $30,000 Total Spent
12 Hires, 0 Active

$42.39/hr Avg Hourly Rate Paid
912 Hours

Member Since Jul 18, 2013