mediawiki

login to mediawiki using RCurl

房东的猫 提交于 2019-12-03 21:12:11
how can I login to a mediawiki with RCurl (or Curl, and I can adapt it to the R package)? I just want to parse a page but I need to login otherwise I can't access it. The Mediawiki API has a login function which returns cookies and a token. You have to save and send both back to the API in order to authenticate the session and login. Here's a way to do it with curl and XMLstarlet in bash: Send a request for a login token, saving the cookies in cookies.txt and the output in output.xml. curl -c cookies.txt -d "lgname=YOURNAME&lgpassword=YOURPASS&action=login&format=xml" http://your

How to parse/extract data from a mediawiki marked-up article via python

折月煮酒 提交于 2019-12-03 17:30:22
问题 Source Mediawiki markup Right now I'm using a variety of regexes to "parse" the data in the mediawiki mark-up into lists/dictionaries, so that elements within the article can be used. This is hardly the best method, as the number of cases that have to be made are large. How would one parse an article's mediawiki markup into a variety of python objects so that the data within can be used? Example being: Extract all headlines to a dictionary, hashing it with its section. Grab all interwiki

Which wiki to use after MediaWiki? [closed]

拈花ヽ惹草 提交于 2019-12-03 15:42:42
We're thinking of moving from our existing installation of MediaWiki to something more feature-rich. I'm trying to find all the pains people have with MediaWiki today (mainly it's poor handling of external documents and less-than-perfect editing capabilities - compared to Word). We are using a wiki for design, spec, process guidelines. We have several external documents (docs, powerpoints) that we are currently putting on a shared folder and linking to from the wiki (because uploading files is not very convenient in MediaWiki). We are trying to make the friction minimum, so that nobody will

Using MediaWiki to pull text from a Wikia page but it comes back in a big mess is there a better way I could do this to pull text from each section?

大兔子大兔子 提交于 2019-12-03 15:40:45
I am developing an Android app that pulls information from a Wikia page and displays it in the app. I currently am pulling all Categories to navigate and have my app set up to display the page in a WebView but I would like to just pull the info and format myself instead of cheapening it by passing to WebView. What I am using to get the text is: http://scottlandminecraft.wikia.com/api.php?format=xml&action=query&titles=ZackScott&prop=revisions&rvprop=content My problem is the text comes back in a big clump, does anyone have any ideas as to how to get this more formatted so I could parse from

How to best add extensions when using official docker image for MediaWiki?

心不动则不痛 提交于 2019-12-03 14:19:44
We are using the official MediaWiki Docker image and want to be able to add additional MediaWiki extensions. Questions: What is the recommended next step here if we are currently using the docker-compose file below were we mount volumes on the host? Is it to build a new image that wraps the official image? Is there an example somewhere of this modified new image for adding a mediawiki extension? Or can we just mount an extensions volume on the host in the current docker-compose and if needed make any adjustments the LocalSettings.php ? This link on the docker website refers to adding PHP

How can I use the Wiktionary API for getting pronunciation data? [closed]

女生的网名这么多〃 提交于 2019-12-03 12:45:50
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. I was looking for a way to get the pronunciation of any given word by querying an API of some sort. As Wiktionary comes in handy to find pronunciations of words I was trying to use their API, but how do I get the pronunciation of a specific word? It seems their API only allows getting the entire Wiki article. Wiktionary doesn't have an API of its own. MediaWiki, the software the Wiktionary runs on does have an API but it

How to group wikipedia categories in python?

北城以北 提交于 2019-12-03 12:15:50
问题 For each concept of my dataset I have stored the corresponding wikipedia categories. For example, consider the following 5 concepts and their corresponding wikipedia categories. hypertriglyceridemia: ['Category:Lipid metabolism disorders', 'Category:Medical conditions related to obesity'] enzyme inhibitor: ['Category:Enzyme inhibitors', 'Category:Medicinal chemistry', 'Category:Metabolism'] bypass surgery: ['Category:Surgery stubs', 'Category:Surgical procedures and techniques'] perth: [

带你走进Choerodon猪齿鱼的知识管理

▼魔方 西西 提交于 2019-12-03 11:08:00
知识管理是Choerodon猪齿鱼的一个重要功能,支持在线自定义文档编辑、成员协助共享等功能,帮助团队集中管理创意、需求和设计。本文将会和大家聊一聊知识管理对敏捷团队的重要性,介绍Choerodon选用XWiki作为开发基础的原因,以及开发团队如何设计Choerodon知识管理,最后会简单介绍一下Choerodon知识管理的一些主要功能和特色。 敏捷团队的知识管理 对于软件开发团队来说,每个成员都是知识工作者,知识工作者需要具备一个很重要的能力——知识管理能力。知识是软件行业的灵魂和生存之本,然而很多时候大家都忽略或轻视了团队知识管理的重要性,所以Choerodon希望能够为团队提供一个便捷高效的知识管理方式。 Choerodon猪齿鱼知识管理是为了解决敏捷团队在快速迭代的开发过程中可能忽视的知识沉淀、文档管理和团队协作等问题而诞生的。 印第安人在赶了3天路之后,会停下来小憩一天,因为他们要等待自己的灵魂跟上来。敏捷开发过程也是如此,在经历一个迭代或者冲刺之后,也需要做一些休整,那就是敏捷回顾。每次回顾时,团队成员需要归纳总结开发过程中积累下来的各种问题或经验,并将这些知识记录在可共享的wiki上,这样既便于团队成员互相学习,也利于以后需要时快速查阅。 为什么基于XWiki开发Choerodon知识管理 现在常见到的wiki有很多,开源免费的如 MediaWiki、DokuWiki

Convert Excel documents to wiki markup

依然范特西╮ 提交于 2019-12-03 10:35:52
Is it possible to convert Excel spreadsheets into MediaWiki markup? I stumpled upon strange recommendations exporting to HTML and convert it into markup. Is there a solution, maybe exporting to XML first or directly converting it? Reinstate Monica I know of three options: Install a WYSIWYG editor extension like FCKeditor (see also Official ). Advantage: fairly easy Paste As Word (and therefore also as Excel) button. Disadvantage: installation can be tricky. Use a macro in Excel . Advantage: a one-click creation of markup. Disadvantage: client-side solution (so need it for all users). My

Import Confluence xml dump into Mediawiki

。_饼干妹妹 提交于 2019-12-03 10:25:31
Is it possible to import a Confluence xml dump into Mediawiki? If so, any guidance will be appreciated. Thanks for you assistance! There is a converter from Confluence to Twiki: http://twiki.org/cgi-bin/view/Plugins/ConfluenceToTWikiAddOn and converters from Twiki to MediaWiki: https://www.mediawiki.org/wiki/Twiki Here are a few markup translation tools: Confluence to MediaWiki Converter Wikifier Doxia Mylyn Still working on if this is a solution or not, but.... from confluence export the space, as HTML then using https://github.com/svick/LINQ-to-Wiki spider from the created index.html page