Find Jobs
Hire Freelancers

Code a simple Node.js script to extract data from HTML

$15-25 AUD / hour

Closed
Posted over 6 years ago

$15-25 AUD / hour

INTRODUCTION Your task is to write a simple Javascript function that extracts certain data from the rows of an HTML table and returns the data as an array of Javascript objects. The function will be executed in a Node.js environment. This is a very simple project. If you are successful in bidding on this project, and you show yourself to be a professional freelancer, you will be asked to build on your work by completing a number of additional projects for additional pay. REQUIREMENTS • Your function will be executed using Node.js v6.11.1. • Your function must be asynchronous. • Your function must either (a) accept one argument and return a promise, or (b) accept two arguments, the second of which is a callback function. INPUT • Your function will be called with a string containing HTML (less than 30 KB). If necessary, your function will also be passed a callback function in the standard form. • The HTML will contain a table with two columns, and may contain rows with file numbers structured as described below. Your function should ignore any rows that do not contain file numbers. • The first cell will contain one or more file numbers of the form /[A-Z]\d+\/\d{4}/ separated by line breaks. It will also contain a URL. • The second cell will contain one or more file titles separated by line breaks. EXPECTED OUTPUT • In this section, when we refer to your function returning a result, we are referring to your function either resolving a promise with the result or executing the callback function with the result, as appropriate. • Your function must return an array. The array should contain an object for every file number in the HTML table. • The objects in the array must appear in the same order as the file numbers appear in the table. • Each object must contain three properties named "number", "title", and "url", corresponding to a file number and URL in the first cell, and a title in the second cell. • If a row contains more than one file number and more than one title separated by line breaks, the title for each file number should be determined by the line breaks. If a row contains more titles than file numbers, subsequent file numbers in the same row should re-use the title of the previous file number in that row. • If your function is unable to extract any file numbers, your function must return an empty array. ASSUMPTIONS • Like all good developers, you should make as few assumptions about your input as possible. • If you do make assumptions about your input, for example, by hardcoding observed features of the HTML, you should ensure that it is trivial to update your code in the event that any of those features is changed. • You can use npm modules, but should do so sparingly. EXAMPLE 1 Input: '<html></html>' Output: [] EXAMPLE 2 Input: '<html xmlns="[login to view URL]" xml:lang="en-au" lang="en-au" dir="ltr"><body class="contentpane"><table class="cases"><tbody><tr><td><p><strong>File No.</strong></p></td><td><p><strong>Short Title</strong></p></td></tr><tr><td><a title="Burns" href="/files/file_z186-2017" target="_self">Z186/2017 <br>Z187/2017</a></td><td>Burns & Others </td></tr></tbody></table></body></html>' Output: [{number: "Z186/2017", title:"Burns & Others", url:"/files/file_z186-2017"}, {number: "Z187/2017", title:"Burns & Others", url:"/files/file_z186-2017"}] EXAMPLE # Further examples will be provided to the successful bidder. OUR EXPECTATIONS OF YOU Having taken the time to write a detailed specification that should be easy to follow, we expect your code to be similarly well-written and easy to read. We are looking for a professional freelancer who is capable of performing a variety of tasks of varying complexity efficiently and affordably.
Project ID: 14941560

About the project

44 proposals
Remote project
Active 7 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
44 freelancers are bidding on average $25 AUD/hour for this job
User Avatar
Dear Sir, I have read everything & consulted with my technical team lead, so we can do this project in 30 Man-Hours. Please let me know if you are comfortable with it? Just so you know I am flexible in prices, as quality & long-term relationship is more important. Look forward to hearing from you. Regards, YK LEADconcept
$22 AUD in 40 days
5.0 (12 reviews)
7.4
7.4
User Avatar
Good day, Professional freelancer at your service. I have read your detailed specs and would love to be part of your project and show myself as valuable for future work. I have understood the main idea of the task and as stated by you, it's fairly simple. We could use the htmlparser package or if needed we can write the parser ourselves. I will make sure the function is async and that the code is easy to read and follow. I will keep a git repository as well for source control. Let's discuss further details. Thank you so much for your time and attention. Regards, Rauxmedia
$25 AUD in 40 days
5.0 (26 reviews)
6.4
6.4
User Avatar
Hi, I see you are looking for node.js developer for html parsing. I have good experience on that. Let's discuss further.
$21 AUD in 40 days
5.0 (29 reviews)
6.2
6.2
User Avatar
Hi, 100% Completion Rate!!! Hi,I read your description carefully. I am very interest your job. I have rich experience for the web development I will make your app perfectly. Please check my work history on Freelancer and below apps, then you will realize my professional skills. Please contact me. Best regards.
$33 AUD in 40 days
5.0 (7 reviews)
5.9
5.9
User Avatar
A proposal has not yet been provided
$15 AUD in 48 days
4.9 (115 reviews)
6.1
6.1
User Avatar
Hello. I'm very interesting with your post. I'm individual developer working fulltime as freelancer. I have many experienced with javascript, nodejs and regex, cheerio in nodejs. I can do this job and give you expected results. Please have discuss. I'm looking forward to hearing from you.
$24 AUD in 40 days
4.9 (55 reviews)
6.3
6.3
User Avatar
Hi there, I’d like to be considered for your job position. I’m a Web Developer with a strong background developing with back end & front end. My expertise skills are Php, CakePhp, WordPress, CodeIgniter,Joomla, Angular JS, Node Js , MySql, JavaScript/JQuery, CSS, HTML, Bootstrap, API's integration, AWS/SAAS etc. For 5+ years I’ve worked in Development and so I am accustomed to working with all sorts of products and services, and in a variety of industries. I highly value professionalism and hold myself strictly accountable to represent my client’s brand. I aim to form a long-term working relationship. Please, let me know what is needed to secure this bid! Thank you for your consideration. Mohit Mali
$15 AUD in 40 days
4.9 (12 reviews)
6.0
6.0
User Avatar
Hello, my name is Michael. I represent Ukrainian based IT-company Webbook Inc that provides services in the IT-sphere for international business. We were carefully reviewing the requirements of the job description, so our devs can work on Your project without delay. We have years of working on projects related on any available CMS, from "scratch" with core php and php-frameworks(Yii/Yii2, Laravel, CodeIgniter), JavaScript, jQuery, AJAX, HTML5, CSS3, Bootstrap, javascript-frameworks, 3d desidg, graphic design etc. However, I shall discuss about the requirements and functionalities in details to have a better understanding about time frame and price. We are glad to chat with You and discuss all in details. Contact us and we will reply immediately. Waiting for Your reply! Best regards, Webbook team
$28 AUD in 38 days
4.8 (15 reviews)
6.2
6.2
User Avatar
Hi there. I have read the details carefully and I assure you that I can create this simple javascript function as you require. I am an active nodejs developer also having done projects which consist of 'scraping' many times. Just recently, I created a scraper for olx (a classifieds site) using nodeJS
$22 AUD in 40 days
5.0 (51 reviews)
6.0
6.0
User Avatar
Hello! My name is Maksim, from Kiev, Ukraine (UTF + 2) We are IntoBi - hardworking and responsible team. Our developers have highly experience in the building of various websites and apps. Our team has excellent skills and experiences in PHP, HTML5, Node.js, Angular.js, CSS, MySQL, Laravel, Codeigniter, JavaScript, jQuery/Prototype and other. Will be glad to cooperate and construct the partnership with you. Can I propose you to discuss this with us (Removed by Freelancer.com Admin)? Kind Regards Maksim CEO IntoBi
$27 AUD in 40 days
5.0 (2 reviews)
6.0
6.0
User Avatar
Hello, I am so glad to bid your project. I fully understood your requirement and it seems great idea. I have full experiences of developing javascript apps. I would like to discuss about more details with you. Best regards.
$22 AUD in 40 days
5.0 (1 review)
5.2
5.2
User Avatar
Hi, I am an individual freelancer with expertise on Node.js programming using JavaScript. I have 6 years of experience as web development and started recently on Freelancer. I am doing mostly node.js projects and request you to check my profile for reviews and feedback on some of the recent projects. I am very strong in node.js programming whether it's promises or async programming using callback paradigm. I am looking for long term collaboration as well and I think it's the best opportunity for me to start with this. I understood input and output as you have specified in description and I am confident of finishing this task. Looking forward for you reply. thanks much!
$16 AUD in 40 days
4.9 (22 reviews)
5.2
5.2
User Avatar
I am expert for data parsing and done many such projects. let me know, I can do parsing work for you!
$222 AUD in 40 days
5.0 (10 reviews)
4.6
4.6
User Avatar
Hello, I have gone through your project description and could assure you the best of the solution. I am taking it as an opportunity and ready to deliver my best. I am expertise in using open source LAMP technology to develop the application, Apache Server, My SQL Database and PHP Server Side scripting language, XML, HTML, CSS3, J Query and JavaScript etc. I hope you like our work. We have done several complex business software like courier management, HRM, project management, supply chain management applications etc. I can assure you 100% satisfied and best solution to your project. Look forward to your response Thanks
$15 AUD in 40 days
5.0 (5 reviews)
4.7
4.7
User Avatar
Hi , Hope you doing great !!! >> Regarding your Project i understand your project description and assure you i can do the project very well that you want Code a simple Node.js script to extract data from HTML. I posses all the skills that are required to accomplish this task, I have expertise in following areas : --- MongoD --- AngularJS --- NodeJS --- ExpressJS --- HTML5, CSS3, Javascript, JQuery and other Web frameworks --- HTML5 Canvas --- OAuth --- JSON, XML --- Send me complete details of this project So that I can analyze and will get back to you. --- So don't worry I will take care of all your requirements and will deliver you quality of results with in quick turn around time. Looking forward to hear from you and also available on Skype for complete discussion. Thanks & Best Regards. Humrobo
$22 AUD in 40 days
4.9 (10 reviews)
4.1
4.1
User Avatar
Hello, Thanks for considering my bid for your project. I’ve reviewed your project requirement brief to design and build a property listing website and feel confident to deliver you quality work as I have ample of experience in similar project work. Please share more details about your proposed website or share any reference site so I can analyze your exact requirement. I would love to speak with you further about taking this project on right away. My standard offer includes: I will provide complete new graphics design of the site. The complete site will be built using latest web standards. I would make sure that website runs perfectly with all major browsers. Complete site will be built with a responsive theme to have perfect view on all screen sizes like smart Phones, iPhone, iPads, Tablets, Mac etc. The complete site would be managed from a backend CMS for easy update of the site any time you want. I am very easy to reach out and provide extensive support to my clients till 100% work satisfaction. Regards , Team Shopify Hello, I have over 6 years rich experience in *wordpress *html5 *php *css *bootstrap *jQuery, etc. I built many mobile-friendly website using above skills up to now. I have full time now. I can start to work immediately. I can deliver your job in a certain time. I want to contact with you. Regards , Team Shopify
$15 AUD in 40 days
5.0 (4 reviews)
2.9
2.9
User Avatar
Hi :-) I'm a full time Node.JS developer currently working for a company in Leeds, UK. I've got between 20 and 30 hours per week to spare on additional projects, just like yours. You can either take all my time or part of it, it's up to you. We can start from a small milestone so you can rate my code and see how efficient it is considering the rate. Let me know if I can be of any help :)
$22 AUD in 25 days
5.0 (4 reviews)
2.3
2.3
User Avatar
Hey, how is it going today? My name is Michael, I'm a web designer/developer from Boston. I've had a look at your project description and feel that my skills match your requirements perfectly. In fact, I did a very similar project recently which I can share with you. Let me know when you have a minute to discuss.
$22 AUD in 40 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I am a JS focused developer with experience in NodeJs writing web servers, SPAs, and singletons. I also have experience writing user scripts focused on DOM parsing, manipulation, and automation. I have a strong understanding of Promises, NodeJs callback signature, JS's prototype based language, and the DOM.
$27 AUD in 40 days
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$18 AUD in 20 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of AUSTRALIA
Sydney, Australia
0.0
0
Payment method verified
Member since Feb 14, 2017

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.