wptools icon indicating copy to clipboard operation
wptools copied to clipboard

redirection

Open jheinecke opened this issue 1 year ago • 0 comments

Hi is it possible to retrieve a non-directed page? In contrast to the doc,

import wptools
wptools.page('Gandhi')

returns the redirection to Mahatma Gandhi and not the redirection page itself? I would like to know whether a request has been redirected or not. Of course I could check in data["redirects"] but I'd like to have the original page and the name of the page which the redirection points to

jheinecke avatar Apr 23 '23 17:04 jheinecke