dijs / infobox-parser

Parse Wikipedia Infoboxes
40 stars 18 forks source link

Some data points are missing #20

Open haloboy777 opened 5 years ago

haloboy777 commented 5 years ago

Sometimes most of the information is missing from the returned result. What should I do to fix this?

Example: Daniel Radcliffe

{{Infobox person\n| name = \n| image = Daniel Radcliffe in July 2015.jpg\n| image size = \n| alt = \n| caption = Radcliffe in 2015\n| birth_name = Daniel Jacob Radcliffe\n| birth_date = {{birth date and age|df=yes|1989|7|23}}\n| birth_place = [[London]], [[England]]\n| residence = London, England <br> [[Manhattan]], [[New York (state)|New York]], United States\n| occupation = {{hlist|Actor| producer}}\n| years_active = 1999–present\n| known_for = [[Harry Potter (Character)|Harry Potter]]\n| partner = [[Erin Darke]] (2013–present)\n| signature = Danielradcliffesignature.png\n}}

Result from 'infobox-parser'

{"general":{"yearsActive":"1999–present\\n","knownFor":"Harry Potter (Character)","partner":"Erin Darke","signature":"Danielradcliffesignature.png\\n"},"tables":[],"lists":[]}

Please assist me regarding this.

dijs commented 5 years ago

I am getting this result in v3.3.1


{
  image: 'Daniel Radcliffe in July 2015.jpg',
  caption: 'Radcliffe in 2015',
  birthName: 'Daniel Jacob Radcliffe',
  birthDate: Object { date: 1989-07-23 00:00:00.000 +0300, age: 30 },
  birthPlace: 'London',
  residence: Array [ 'Manhattan', 'New York (state)' ],
  occupation: 'hlist',
  yearsActive: '1999–present',
  knownFor: 'Harry Potter (Character)',
  partner: 'Erin Darke',
  signature: 'Danielradcliffesignature.png',
  title: 'List of awards and nominations received by Daniel Radcliffe',
  list: 'MTV Movie Award for Best On-Screen Duo\nGlamour Awards Man of the Year'
}```