Hi all, I'm looking for a way to import about 10,000 articles into a wiki. The only catch is about 1000 of these articles have already been created. Ideally i would like to import only the articles that don't exist and not have any article get overwritten by the import. Is there a good extension/tool to prevent an import from overwriting pages that already exist? I have a feeling that the answer is no and I will have to write a code that would query the api and disregard found articles. Has anyone done this before?
Thanks so much, Patrick
Patrick Flaherty wrote:
Hi all, I'm looking for a way to import about 10,000 articles into a wiki. The only catch is about 1000 of these articles have already been created. Ideally i would like to import only the articles that don't exist and not have any article get overwritten by the import. Is there a good extension/tool to prevent an import from overwriting pages that already exist? I have a feeling that the answer is no and I will have to write a code that would query the api and disregard found articles. Has anyone done this before?
Thanks so much, Patrick
php maintenance/importTextFile.php --nooverwrite
If you want to avoid the programming, export the 1,000 existing articles from the new wiki. Import all of the 10,000 articles you wish to transfer. Then re-import the 1,000 existing articles.
David Moore Virginia Tech Institute for Policy and Governance 205 W. Roanoke Street (0489) Blacksburg, VA 24061-0489 540-230-6914 (cell) 540-231-6775 (office) NEW 540-231-6722 (fax) dmoore@vt.edu www.ipg.vt.edu
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Patrick Flaherty Sent: Monday, April 05, 2010 5:32 PM To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] Importing only new articles
Hi all, I'm looking for a way to import about 10,000 articles into a wiki. The only catch is about 1000 of these articles have already been created. Ideally i would like to import only the articles that don't exist and not have any article get overwritten by the import. Is there a good extension/tool to prevent an import from overwriting pages that already exist? I have a feeling that the answer is no and I will have to write a code that would query the api and disregard found articles. Has anyone done this before?
Thanks so much, Patrick _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Thanks for the help. I will probably end up using the API but thanks for the suggestions. I might use importtextfile.php on another project.
Patrick.
On Tue, Apr 6, 2010 at 12:10 AM, Moore, David dmoore@vt.edu wrote:
If you want to avoid the programming, export the 1,000 existing articles from the new wiki. Import all of the 10,000 articles you wish to transfer. Then re-import the 1,000 existing articles.
David Moore Virginia Tech Institute for Policy and Governance 205 W. Roanoke Street (0489) Blacksburg, VA 24061-0489 540-230-6914 (cell) 540-231-6775 (office) NEW 540-231-6722 (fax) dmoore@vt.edu www.ipg.vt.edu
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto: mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Patrick Flaherty Sent: Monday, April 05, 2010 5:32 PM To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] Importing only new articles
Hi all, I'm looking for a way to import about 10,000 articles into a wiki. The only catch is about 1000 of these articles have already been created. Ideally i would like to import only the articles that don't exist and not have any article get overwritten by the import. Is there a good extension/tool to prevent an import from overwriting pages that already exist? I have a feeling that the answer is no and I will have to write a code that would query the api and disregard found articles. Has anyone done this before?
Thanks so much, Patrick _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org