Server script to extract info from html files

  • Status Closed
  • Budget $30 - $250 USD
  • Total Bids 8

Project Description

Server script to extract info from html files--this should be a very quick turnaround\r\n\r\nWe need a server script to read HTML files (& css), extract data from them, and call an API with extracted data.\r\n\r\nWe will be creating HTML files. The html files will appear in a preselected directory in our server.\r\n\r\nWe are open to suggestions on what language to implement this.\r\n\r\nEvery 30 seconds we need a program to notice new files (i.e. [url removed, login to view]), read the file, and parse it. The html file will contain comments, within the comments might be text segments that look like this:\r\n\r\[url removed, login to view]\r\nbegin file\r\nHTML0\r\nHTML0.1\r\n\r\nHTML0.2\r\n\r\n\r\nHTML1\r\nHTML2\r\nend of file\r\n\r\nWe need the program to read this file create a parameter list that will be used to call addWidMaster():\r\nwid=xyz // name of html file\r\nHTML=all the content // the left overs\r\nCSS= contents of [url removed, login to view] // read the CSS file separately and put it here\r\ntestwid= {\r\n "message": "This is a test SMS",\r\n "metadata" : "{"status": 1, "method": "acctDTO"}\r\n "gojs": "{ what we are talking about end of testwid}\r\n }\r\n // the 'inside' of the testwid\r\ntestwid22={\r\n "message": "This is a test SMS",\r\n "metadata" : "{"status": 1, "method": "acctDTO"}\r\n "gojs": "{ what we are talking end of wid22}"\r\n }\r\n // the 'inside' of the testwid22\r\n...repeat for all the {} sections id you find them\r\n\r\nThen with the result call a put call in this form:\r\nPUT [url removed, login to view] {parameter list gathered above in parameter DTO format see below} you will get a result back from API in data model format.\r\n\r\nAdd the results of the API call 'raw' to the bottom of HTML\r\n\r\nbelow HTML2\r\n\r\n\r\nParameterDTO format:\r\n[{"ParameterName":"exampleCreator","ParameterValue":"eq:cody"},{"ParameterName":"examplePrice","ParameterValue":"eq:$[url removed, login to view]"}]\r\n\r\nDataModel format:\r\n[{"Key":"exampledatawid1","Value":"val1}"},{"Key":"exampledatawid6","Value":"val2"}]

Get free quotes for a project like this
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online