bugWWWJDic - Bugs: bug #45535, Json output

 
 

bug #45535: Json output

Submitter:  Tha Leang <vleango>
Submitted:  Sun 12 Jul 2015 08:10:37 PM UTC
   
 
Category:  None Severity:  3 - Normal
Status:  Fixed Privacy:  Public
Assigned to:  marcobresciani Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 13 Jul 2015 08:17:37 PM UTC, comment #3: 

WWWJDic 9.0.2 available.

Marco Bresciani <marcobresciani>
Group administrator
Mon 13 Jul 2015 08:14:59 PM UTC, comment #2: 

Regexp properly adapted for correct parsing of raw response from WWWJDic site.

Marco Bresciani <marcobresciani>
Group administrator
Sun 12 Jul 2015 08:43:52 PM UTC, comment #1: 

Problem is associated "simply" to a wrong usage of regexps to extract information from the raw page format.
  Need to improve regexp usage or to properly extract information from the page.

For example, the error message is <p>...</p> but also the content is <p><pre>...</pre></p> so I have to simplify this...


Marco Bresciani <marcobresciani>
Group administrator
Sun 12 Jul 2015 08:10:37 PM UTC, original submission:  

When executing:

my_wwwjdic.json_translate 'word'

The expected result:

{
  word : translation uri for raw display format
  'title' : title (extracted from <br>TITLE<br> tags in raw display format)
  'translation' : translation content (extracted from <pre>TRANSLATION</pre> raw display format
  'message' : possible error message or result (extracted from <p>MESSAGE<p> raw display format
}

was not returned.

Tha Leang <vleango>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vleango (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-07-13 marcobresciani Open/ClosedOpen Closed
    2015-07-13 marcobresciani StatusIn Progress Fixed
    2015-07-13 marcobresciani Assigned toNone marcobresciani
    2015-07-12 marcobresciani StatusConfirmed In Progress
    2015-07-12 marcobresciani StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code