Closed divanvb closed 5 years ago
Yeah, that's a good idea. I may be able to reuse some of the parsing I wrote for the tables.
This update will be a part of a major update.
Try it out @ v5.0.0-alpha.1
Cool, will have a look.
Seems to be working pretty well. Doesn't return all data in certain situations but I believe it's because the data is not of value type String
.
So a bit of Array manipulation and boom bam everything I want.
Hi
The content from the page is displayed very strangely.
page = await wikijs({apiUrl:
'https://cod-esports.gamepedia.com/api.php', }).page(
OpTic_Gaming); console.log(await page.content());
Is there a way the function can be altared to return an array of objects with with the title & content of the information for example
{ title: Organization, content: 'OpTic Gaming is one of the more storied organizations within the competitive side of the Call of Duty franchise. The team was established in 2006 byOpTic KR3W for the aspirations of becoming a Call of Duty sniping team. Only leading OpTic for a short time, KR3W steps down and OpTic Jon3S, betterknown as OpTicJ, took his place. But J only lead the team for a very short time span as well, handed over the team to Hector “H3CZ” Rodriguez in 2007. H3CZ ran the team for two years before uploading their first video to YouTube in 2009. The same year OpTic Gaming started uploading to YouTube, H3CZ had established a Call of Duty competitive team that would become one of the teams with the biggest fan bases and presence in the community to ever play the game.'
Output: