bugWWWJDic - Bugs: bug #45535, Json output

 
 

bug #45535: Json output

Submitted by:  Tha Leang <vleango>
Submitted on:  Sun 12 Jul 2015 08:10:37 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Status: FixedPrivacy: Public
Assigned to: Marco Bresciani <marcobresciani>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

WWWJDic 9.0.2 available.

Marco Bresciani <marcobresciani>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 13 Jul 2015 08:17:59 PM UTCmarcobrescianiOpen/ClosedOpen=>Closed
    Mon 13 Jul 2015 08:17:37 PM UTCmarcobrescianiStatusIn Progress=>Fixed
    Mon 13 Jul 2015 08:14:59 PM UTCmarcobrescianiAssigned toNone=>marcobresciani
    Sun 12 Jul 2015 08:43:52 PM UTCmarcobrescianiStatusConfirmed=>In Progress
    Sun 12 Jul 2015 08:42:25 PM UTCmarcobrescianiStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1