Manual:Pywikibot/Create your own script/nan

Chit ia̍h ū chi̍t-kóa siong-tong ki-pún ê pō͘-sò͘ hō͘ lí khai-sí siá lí ka-kī ê bot. Chhiáⁿ khak-jīn lí í-keng kiàn-li̍p lí ka-kī ê  tóng-àn!

Lí ē-sái tī chi̍t ê shell ia̍h-sī chi̍t ê kiàn-pún tiong sú-iōng ē-kha ê chí-lēng.

Beh khui shell, cháu ;

As a script, please save the file as  in the   directory, then run.


 * To gain access to the pywikibot library from your Python script, use:


 * to retrieve a page, use the following, where pageName is the title of the page you would like to retrieve (e.g., Wikipedia:Bots or India):

beh keng-sin chi̍t ê ia̍h-bīn, ēng:


 * khòaⁿ chi̍t-kóa koan-hē kî-thaⁿ siūⁿ-hoat ê pywikibot tóng-àn --  tha̍k--khí-lâi siong-tùi khah kán-tan tio̍h-sǹg lí sī pywikibot ê sin-chhiú.


 * lí thang tī  tóng-àn chhōe tio̍h só͘-ū ē-ēng-tit ê Page hong-hoat.


 * kà lí beh án-chóaⁿ siat-tēng, he tī chē-chē bô-kāng ê bot lóng ēng-ē-tio̍h, lí chí su-iàu tēng-gī beh siá tī bûn-chiuⁿ bûn-pún lāi ê jī-chhoàn.


 * Beh thia̍p-tāi hóng-būn chi̍t cho͘ bûn-chiuⁿ, tī pywikibot/pagegenerators.py (chham-oa̍t kū bûn-kiāⁿ) chhōe chi̍t-kóa ē hôe-thoân chi̍t cho͘ bûn-chiuⁿ ê mi̍h-kiāⁿ. Pí-lūn CategoryPageGenerator ē-tàng tī Lūi-pia̍t:Chāi-sè jîn-bu̍t lūi-pia̍t tiong chò chi̍t-kóa tōng-chok:

Chham-oa̍t

 * Pywikibot full documentation on doc.wikimedia.org