Xqt added a comment.

  I try to get the result for de-wiki
  
    >>> import pwb, pywikibot as py
    >>> from pywikibot.comms import http
    >>> url = 
'https://de.wikipedia.org/w/api.php?action=paraminfo&modules=main&maxlag=5&format=json'
    >>> de = http.fetch(url)
    >>> de.content[:50]
    u'{"paraminfo":{"helpformat":"none","modules":[{"nam'
  
  next for pdc-wiki:
  
    >>> url = 
'https://pdc.wikipedia.org/w/api.php?action=paraminfo&modules=main&maxlag=5&format=json'
    >>> pdc = http.fetch(url)
    WARNING: Http response status 503
    >>> pdc.content[:50]
    u'<!DOCTYPE html>\n<html lang=en>\n<meta charset=utf-8'
    >>> 
  
  On the other hand, getting the data via browser works fine. Very strange.

TASK DETAIL
  https://phabricator.wikimedia.org/T130099

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Anomie, Aklapper, Xqt, pywikibot-bugs-list, dg711, jayvdb, Legoktm



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to