Board Thread:Support Requests - Getting Technical/@comment-39119615-20190425231340/@comment-39119615-20190429212606

Andrewds1021 wrote: Just incase it still isn't clear, let me try to explain. Zylvian, tell me if I understand correctly.

One some other site, you want to be able to have a user type in a search term. You then want your script to search for the best matching page on the wiki and take the data from it. You then want to display "the image" and "the summary" on this third party platform. That is correct.

The code is meant for a Reddit bot. The user types something like Lufffy in a comment, the bot checks the onepiece wiki for the most fitting result, and parses the link, the image and the summary.

As mentioned, I have a working version of this bot but it's extremly finnicky, as in, if the article isn't the EXACT wording, then it fails. As mentioned in the previous comment however, the built in wikia search bar gets it correct: https://gyazo.com/b2297f7a605748874cd7e8749f5e129a

Someone suggested I swap from the previous api to the one I linked, the Wikia Api v1 one.

​​​​Old(current) API: [//onepiece.fandom.com/api.php https://onepiece.fandom.com/api.php]

New API that I'm trying to get to work: [//dev.fandom.com/api/v1#!/Articles/getAsSimpleJson_get_0 https://dev.fandom.com/api/v1#!/Articles/getAsSimpleJson_get_0]