[00:41:11] [telegram] Ok thanks for the response (re @Thecladis: Could you be more specific? šŸ™‚) [00:42:41] [telegram] Hi I need help installing this extension. [00:42:42] [telegram] This is the process I took: [00:42:43] [telegram] I downloaded the extension, placed it in a folder in /extension/, added this wfLoadExtension( 'DonationInterface' ); in LocalSettings.php. Then added this also $wgPaypalGatewayEnabled = true; [00:42:45] [telegram] $wgPaypalGatewayAccountInfo = array( 'default' => array( 'AccountEmail' => 'example@gmail.com', ), ); [00:42:46] [telegram] What else can IĀ do please because it's not working yet? [01:58:23] What do you mean it's not working? [01:58:46] I will note the DonationInterface extension probably isn't well suited to being used outside Wikimedia.But it might be fine... [02:19:11] [telegram] Check if any additional configurations required https://m.mediawiki.org/wiki/Extension:DonationInterface#Installation (re @Richparker01: Hi I need help installing this extension. [02:19:12] [telegram] This is the process I took: [02:19:13] [telegram] I downloaded the extension, placed it in a folder in /extension/, added this wfLoadExtension( 'DonationInterface' ); in LocalSettings.php. Then added this also $wgPaypalGatewayEnabled = true; [02:19:15] [telegram] $wgPaypalGatewayAccountInfo = array( 'default' => array( 'AccountEmail' => 'example@gmail.com', ), ); [02:19:16] [telegram] What else can IĀ do please because it's not working yet?) [13:39:27] [telegram] Is anyone here familiar with any recommendable tool for obtaining and parsing wikitext? [13:39:28] [telegram] I spend some effort on finding one, for now sole effect is opening multiple issues across several projects and I found nothing viable. [13:39:55] [telegram] I saw your question in the General group. What exactly are you trying to do with templates and parameters? [13:41:21] [telegram] I want download data from third party Mediawiki site ( https://wiki.openstreetmap.org/wiki/Tag:highway%3Dmotorway ), parse infoboxes and compare them with other sources of data inluding third party Wikidata database. [13:42:00] [telegram] https://wiki.openstreetmap.org/w/index.php?title=Tag:highway%3Dmotorway&action=edit [13:42:01] [telegram] has [13:42:03] [telegram] {{ValueDescription [13:42:04] [telegram] |key=highway [13:42:06] [telegram] |value=motorway [13:42:07] [telegram] |image=Image:A4-passante di mestre dd.png [13:42:09] [telegram] |image_caption=Motorway [13:42:10] [telegram] (...) [13:42:12] [telegram] that I want to extract [13:42:32] [telegram] https://wiki.openstreetmap.org/w/index.php?title=Tag:highway%3Dmotorway&action=edit [13:42:33] [telegram] has [13:42:34] [telegram] {{ValueDescription [13:42:36] [telegram] |key=highway [13:42:37] [telegram] |value=motorway [13:42:39] [telegram] |image=Image:A4-passante di mestre dd.png [13:42:40] [telegram] (...) [13:42:42] [telegram] that I want to extract [13:43:00] [telegram] I can't point to particular code, but I'm pretty sure that when Wikidata started, there were bots that took values from infoboxes and inserted them into Wikidata, and maybe you could reuse their code . Perhaps @Ladsgroup has an idea? [13:44:44] [telegram] That's what pywikibot's harvest_template.py does (re @amire80: I can't point to particular code, but I'm pretty sure that when Wikidata started, there were bots that took values from infoboxes and inserted them into Wikidata, and maybe you could reuse their code . Perhaps @Ladsgroup has an idea?) [13:45:02] [telegram] in python we have mwparserfromhell library which works nice [13:45:12] [telegram] Lovely name :) (re @Ladsgroup: in python we have mwparserfromhell library which works nice) [13:48:18] [telegram] Thanks, I will look into it again (I was discouraged by pretty confusing page about thrid-party wikis - detailed discussion about internal working of Uncyclopedia, multiple half-written code samples that should be somehow plugged into script and 0 complete code examples) (re @jhsoby: That's what pywikibot's harvest_template.py does) [13:48:25] [telegram] Thanks, I will look into it again (I was discouraged by pretty confusing page about third-party wikis - detailed discussion about internal working of Uncyclopedia, multiple half-written code samples that should be somehow plugged into script and 0 complete code examples) (re @jhsoby: That's what pywikibot's harvest_template.py does) [13:48:49] [telegram] https://www.mediawiki.org/wiki/Manual:Pywikibot/Use_on_third-party_wikis [13:50:36] [telegram] A lot of our documentation is a mess, including a large part of mediawiki.org. There are some good parts, but one just has to be prepared to see documentation that is far from perfect. [13:55:12] [telegram] Maybe someone here has code example or running code to use pywikibot on third party Mediawiki install? [15:49:32] [telegram] Solved! [15:49:33] [telegram] https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation#Install_Pywikibot [15:49:34] [telegram] I followed it, run script, and copied created file [15:49:36] [telegram] Deleted everything else, and installed pywikibot properly with pip [15:49:37] [telegram] And now I could follow https://www.mediawiki.org/wiki/Manual:Pywikibot/Create_your_own_script [15:49:39] [telegram] import pywikibot [15:49:40] [telegram] # https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation#Install_Pywikibot [15:49:42] [telegram] # I followed it, run script, and recopied it here [15:49:43] [telegram] # https://www.mediawiki.org/wiki/Manual:Pywikibot/Create_your_own_script [15:49:45] [telegram] site = pywikibot.Site() [15:49:46] [telegram] page = pywikibot.Page(site, "Key:highway") [15:49:48] [telegram] text = page.text [15:49:49] [telegram] print(text) [16:44:38] [telegram] Well done! (re @matkoniecz: Solved! [16:44:39] [telegram] https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation#Install_Pywikibot [16:44:40] [telegram] I followed it, run script, and copied created file [16:44:42] [telegram] Deleted everything else, and installed pywikibot properly with pip [16:44:43] [telegram] And now I could follow https://www.mediawiki.org/wiki/Manual:Pywikibot/Create_your_own_script [16:44:45] [telegram] import pywikibot [16:44:46] [telegram] # https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation#Install_Pywikibot [16:44:48] [telegram] # I followed it, run script, and recopied it here [16:44:49] [telegram] # https://www.mediawiki.org/wiki/Manual:Pywikibot/Create_your_own_script [16:44:51] [telegram] site = pywikibot.Site() [16:44:52] [telegram] page = pywikibot.Page(site, "Key:highway") [16:44:54] [telegram] text = page.text [16:44:55] [telegram] print(text)) [16:45:27] [telegram] Solved! Now I have read access to OSM Wiki (third party wiki running Mediawiki software). [16:45:28] [telegram] https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation#Install_Pywikibot [16:45:30] [telegram] I followed it, run script, and copied created file [16:45:31] [telegram] Deleted everything else, and installed pywikibot properly with pip [16:45:33] [telegram] And now I could follow https://www.mediawiki.org/wiki/Manual:Pywikibot/Create_your_own_script [16:45:34] [telegram] import pywikibot [16:45:36] [telegram] # https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation#Install_Pywikibot [16:45:37] [telegram] # I followed it, run script, and recopied it here [16:45:39] [telegram] # https://www.mediawiki.org/wiki/Manual:Pywikibot/Create_your_own_script [16:45:40] [telegram] site = pywikibot.Site() [16:45:42] [telegram] page = pywikibot.Page(site, "Key:highway") [16:45:43] [telegram] text = page.text [16:45:45] [telegram] print(text) [18:33:13] [telegram] https://tools-static.wmflabs.org/bridgebot/90d07070/file_1817.jpg [20:05:33] [telegram] Look at page.templatesWithParams() . It will go over all the templates and return the fields (re @matkoniecz: Solved! Now I have read access to OSM Wiki (third party wiki running Mediawiki software). [20:05:34] [telegram] https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation#Install_Pywikibot [20:05:36] [telegram] I followed it, run script, and copied created file [20:05:37] [telegram] Deleted everything else, and installed pywikibot properly with pip [20:05:39] [telegram] And now I could follow https://www.mediawiki.org/wiki/Manual:Pywikibot/Create_your_own_script [20:05:40] [telegram] import pywikibot [20:05:42] [telegram] # https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation#Install_Pywikibot [20:05:43] [telegram] # I followed it, run script, and recopied it here [20:05:45] [telegram] # https://www.mediawiki.org/wiki/Manual:Pywikibot/Create_your_own_script [20:05:46] [telegram] site = pywikibot.Site() [20:05:48] [telegram] page = pywikibot.Page(site, "Key:highway") [20:05:49] [telegram] text = page.text [20:05:51] [telegram] print(text)) [20:06:45] [telegram] https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.page.html?highlight=templateswithparams#pywikibot.page.Page.templatesWithParams [22:15:43] [telegram] re what you wrote in the general group ā€“ the MediaWiki API does include a parse action, and one thing you can get out of it is a ā€œparse treeā€, e.g. https://en.wikipedia.org/wiki/Special:ApiSandbox#action=parse&format=json&text=%7B%7B1x%7Carg%7D%7D&prop=parsetree&contentmodel=wikitext&formatversion=2 (re @matkoniecz: Is anyone here familiar with any recommendable tool for obtaining and parsing wikitext? [22:15:43] [telegram] I spend some effort on finding one, for now sole effect is opening multiple issues across several projects and I found nothing viable.) [22:15:46] [telegram] I havenā€™t used it myself, though [22:16:27] [telegram] if you can use PHP, you might be able to use https://www.mediawiki.org/wiki/Parsoid too, but I have no experience with that either