Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

"page.images" return a non-valid image #14

Open
justalemon opened this issue Jul 18, 2017 · 1 comment
Open

"page.images" return a non-valid image #14

justalemon opened this issue Jul 18, 2017 · 1 comment

Comments

@justalemon
Copy link

justalemon commented Jul 18, 2017

After playing a bit with the library, i found a little problem. The code is very straightforward:

import wikia
wikia.set_lang("es")
search = wikia.search("Overwatch", "Tracer")
page = wikia.page("Overwatch", s[0])
print(page.images[0])

The last line print "https://vignette4.wikia.nocookie.net/overwatch/images/7/7c/Tracer-skin-clasic.png", a non valid image. To make the link valid you need to add "/revision/latest?path-prefix=LANG" at the end of the link.

This will load the latest revision of the image from Wikia used in the wiki with that certain code lang. For english links you don't need "?path-prefix=LANG".

@Timidger
Copy link
Owner

Hey there, thanks for the issue.

I don't maintain this library any more, but if you open a PR with the fix, I'd be willing to merge it and update the version present on pypi

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants