[Wikitech-l] garbage characters show up when fetching wikimedia api

2016-05-05 Thread Trung Dinh
Hi all, I have an issue why trying to parse data fetched from wikipedia api. This is the piece of code that I am using: api_url = 'http://en.wikipedia.org/w/api.php' api_params =

Re: [Wikitech-l] garbage characters show up when fetching wikimedia api

2016-05-05 Thread Trung Dinh
, 11:16 PM, "Wikitech-l on behalf of MZMcBride" <wikitech-l-boun...@lists.wikimedia.org on behalf of z...@mzmcbride.com> wrote: >Trung Dinh wrote: >>Hi all, >>I have an issue why trying to parse data fetched from wikipedia api. >>This is the piece of co

[Wikitech-l] wgDBServer ipv6

2016-07-07 Thread Trung Dinh
Hi everyone, I am trying to configure a mysql server for our wikimedia service. We are using ipv6 of the mysql server. I am not sure how to configure $wgDBServer with an ipv6. I am able to configure the server with ipv6. I tried to set: 1. $wgDBServer = [IPAddress]:Portname 2.

[Wikitech-l] wikidatawiki.xml.bz2 failed integrity check

2016-08-09 Thread Trung Dinh
Hi all, I am running into an issue with the dump file: wikidatawiki.xml.bz2 from https://dumps.wikimedia.org/wikidatawiki/latest/wikidatawiki-latest-pages-articles.xml.bz2 The dump file fails the integrity test "bzip2 -t wikidatawiki-latest-pages-artitcles.xml.bz2" I am not sure what is the

[Wikitech-l] Question about wikidata dump bz2 file

2017-04-05 Thread Trung Dinh
Hi everyone, I realized the dump file for wikidata is no longer in the format wikidatawiki-2017-pages-articles.xml.bz2 anymore. ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] [Potential Spoof] Question about wikidata dump bz2 file

2017-04-05 Thread Trung Dinh
when did this happen and the rationale behind it. Will it be permanent or we will switch back to the original format soon ? Thank you, Best regards, Trung On 4/5/17, 9:57 PM, "Wikitech-l on behalf of Trung Dinh" <wikitech-l-boun...@lists.wikimedia.org on behalf of t...@fb.com>

Re: [Wikitech-l] [Potential Spoof] Question about wikidata dump bz2 file

2017-04-07 Thread Trung Dinh
ime Crespo <jcre...@wikimedia.org> wrote: > Trung, > > If you do not get an answer on the developers' forum, there is a > dumps-focused mailing list at > https://lists.wikimedia.org/mailman/listinfo/xmldatadumps-l > > Cheers, > &

[Wikitech-l] Author of wikipedia images

2017-07-11 Thread Trung Dinh
Hi everyone, How can we programmatically (or from the data dump) get the author of the main image shown in a Wikipedia article. For example, the image for Barrack Obama page is https://en.wikipedia.org/wiki/Barack_Obama#/media/File:President_Barack_Obama.jpg and the author of the image is