-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse wikimedia URLs as input param #271
Comments
|
hi @divanvb yeah, it looks like that wiki has an api it may just be some custom url path to it, or something here's the url we want: |
oh, this works: wtf.fetch('Abaddon', 'dota2', {
wikiUrl: 'https://dota2.gamepedia.com/api.php'
}).then(function(doc) {
console.log(doc.json())
}) i like that idea of passing-in the url though |
Indeed, passing the url through gives a bit more flexibility towards specifying the exact wiki etc. I'll have a look at the code above and let you know how well it works with what I'm trying to achieve. |
1 similar comment
Indeed, passing the url through gives a bit more flexibility towards specifying the exact wiki etc. I'll have a look at the code above and let you know how well it works with what I'm trying to achieve. |
I've been playing around with the above-mentioned solution, seems to be working quite well. Can you please provide me with a link that shows the options that can be passed through as the 3rd argument. I can't find anything in the documentation on what options are available. It just states |
yeah sorry, these were added in prs and need to be cleaned-up. i think these are the supported params right now:
|
add extension of |
This is breaking with the latest version for me. Unable to fetch anymore. import wtf from 'wtf_wikipedia';
|
hey @divanvb thanks, I'll need to know more information about your setup, it seems to work for me, and the tests. import wtf from 'wtf_wikipedia'
wtf.fetch('Toronto').then(doc => {
console.log(doc.categories())
})
|
this works now, in |
I'm unable to fetch and parse from the following wiki: https://dota2.gamepedia.com/Abaddon
The text was updated successfully, but these errors were encountered: