Jump to content

Topic on Talk:PAWS

Attribute error for talk page

4
Info-farmer (talkcontribs)

I am trying to post a message in the index_talk page to inform other contributors. But facing attribution error?

Terminal  : // AttributeError: module 'pywikibot' has no attribute 'talk'//

My attribute (page = pywikibot.Page(site, booktitle)) for a page works fine for a wiki page. Like, what is the attribute for talk page?

(talkpage = pywikibot.?????(site, booktitle))

Ivanhercaz (talkcontribs)

Hi Info-farmer, Have you tried to add the parameter ns = , I mean:

talkpage = pywikibot.Page(site, booktitle, ns = 1)

1 is for main namespace talk pages, in Manual:Namespace constants you can check all the namespaces. I don't know what key number is for the namespace talk page you want to use.

I hope this works for you!

Regards

Info-farmer (talkcontribs)

I tried as you instructed but failed. Afte sometime, i changed the input as a "talk page", it is now success. For example, earlier my input is "cat"; now input is "Talk:Cat". So there is no need to the change the attribution. I am still searching pywikibot's attribution list like below.

#pywikibot.Site = Select your language, project ('ta', 'wikisource')

#pywikibot.Page = site, pagename

#page.text

#page.save(summary='+ ')

Once again, thanks indeed for your earlier help "for the recent changes". Bye for now.

Ivanhercaz (talkcontribs)

I am happy to know you success with your idea. I think the Pywikibot has to be improved, because this documentation has nothing now :/

Regards

Reply to "Attribute error for talk page"