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

2016-05-07 Thread MZMcBride
MZMcBride wrote: >The error you're getting generally means that the JSON was malformed for >some reason. It seems unlikely that MediaWiki's api.php is outputting >invalid JSON, but I suppose it's possible. I left a note on the Phabricator task that Marius linked to:

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

2016-05-06 Thread Marius Hoch
Hi, that sounds like https://phabricator.wikimedia.org/T133866. Cheers Marius On 05.05.2016 21:56, Trung Dinh wrote: 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 =

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

2016-05-05 Thread Trung Dinh
Guys, Thanks so much for your prompt feedback. Basically, what I am doing is to keep sending the request based on date & time until we reach to another day. Specifically, what I have is something like: api_url = 'http://en.wikipedia.org/w/api.php' date='20160504022715' while (True):

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

2016-05-05 Thread Antoine Musso
Le 05/05/2016 21:56, Trung Dinh a écrit : > 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 = >

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

2016-05-05 Thread Brad Jorsch (Anomie)
On Thu, May 5, 2016 at 6:16 PM, MZMcBride wrote: > The error you're getting generally means that the JSON was malformed for > some reason. It seems unlikely that MediaWiki's api.php is outputting > invalid JSON, but I suppose it's possible. > There is

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

2016-05-05 Thread MZMcBride
Trung Dinh wrote: >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 = >'action=query=recentchanges=5000=edit=0 >dir=newer=json=20160504022715' > >f =

[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 =