Wikipedia icon indicating copy to clipboard operation
Wikipedia copied to clipboard

Ability to get a page from URL, not only the title and pageId

Open carlmachaalani opened this issue 1 year ago • 3 comments

Hi,

It would be nice to also add the URL of the Wikipedia page as a parameter of wiki.page(), not only the title and pageId.

Thanks!

carlmachaalani avatar Jan 10 '24 18:01 carlmachaalani

Any suggestions on what would be the better approach - wiki.page("https://en.wikipedia.org/wiki/Batman") or more explicitly having wiki.page(url: "https://en.wikipedia.org/wiki/Batman"). It sounds like an useful feature that would be worth exploring.

dopecodez avatar Jan 13 '24 13:01 dopecodez

Thanks for your reply.

In my opinion, explicitly having wiki.page(url: "https://en.wikipedia.org/wiki/Batman") would be cleaner.

carlmachaalani avatar Jan 15 '24 14:01 carlmachaalani

Thanks for your reply.

In my opinion, explicitly having wiki.page(url: "https://en.wikipedia.org/wiki/Batman") would be cleaner.

I agree. Explicitly indicating url is a good solution.

kingram6865 avatar Jan 27 '24 09:01 kingram6865