I am using the following code to fetch talk page for a given Wikipedia page.
import pywikibot as pw
page = pw.Page(pw.Site('en'), 'Elon_Musk')
talkpage = page.toggleTalkPage()
talkpage.text
This works fine, but it does not return all archived talk pages. Is there a way I can programmatically find archives for a given talk page and loop through them to get the text?
Many thanks!