In [2]:
import pywikibot

wikidata_site = pywikibot.Site('wikidata', 'wikidata')
repo = wikidata_site.data_repository()

Qitem = pywikibot.ItemPage(repo, 'Q28481077')
Qitem.get()
Qitem.removeClaims(Qitem.claims['P1087'])
WARNING: API error too-many-claim: Too many values supplied for parameter "claim". The limit is 50.
---------------------------------------------------------------------------
APIError                                  Traceback (most recent call last)
<ipython-input-2-49fbfc198238> in <module>
      6 Qitem = pywikibot.ItemPage(repo, 'Q28481077')
      7 Qitem.get()
----> 8 Qitem.removeClaims(Qitem.claims['P1087'])

/srv/paws/pwb/pywikibot/page.py in removeClaims(self, claims, **kwargs)
   4310         if isinstance(claims, pywikibot.Claim):
   4311             claims = [claims]
-> 4312         data = self.repo.removeClaims(claims, **kwargs)
   4313         for claim in claims:
   4314             claim.on_item.latest_revision_id = data['pageinfo']['lastrevid']

/srv/paws/pwb/pywikibot/site.py in callee(self, *args, **kwargs)
   1318             else:
   1319                 raise Exception('Not implemented')
-> 1320             return fn(self, *args, **kwargs)
   1321 
   1322         if not __debug__:

/srv/paws/pwb/pywikibot/site.py in removeClaims(self, claims, bot, summary, baserevid)
   8057 
   8058         req = self._simple_request(**params)
-> 8059         data = req.submit()
   8060         return data
   8061 

/srv/paws/pwb/pywikibot/data/api.py in submit(self)
   2077                               % result)
   2078 
-> 2079                 raise APIError(**result['error'])
   2080             except TypeError:
   2081                 raise RuntimeError(result)

APIError: too-many-claim: Too many values supplied for parameter "claim". The limit is 50. [help:See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.]
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
    
    
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]: