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

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

Description

@justalemon

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".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions