title: Passing the "continue" content of the wikipedia API gives me a badcontinue error
body: <p>I'm trying to build a loop that gives me all the pageids of a category. Thus, I'm trying to use the &quot;continue&quot; parameter as intended.</p>
  <p>Here is the initialization with a first query that is working :</p>
  <pre class="lang-py prettyprint-override"><code>import requests
  URL = &quot;https://fr.wikipedia.org/w/api.php&quot;
  
  PARAMS_FRANCE = {
          &quot;action&quot;: &quot;query&quot;,
          &quot;cmtitle&quot;: 'Catégorie:Portail:France/Articles liés',
          &quot;list&quot;: &quot;categorymembers&quot;,
          &quot;cmlimit&quot;: 500,
          &quot;format&quot;: &quot;json&quot;
  }
  
  R = S.get(url=URL, params=PARAMS_FRANCE)
  DATA = R.json()
  PAGES_FRANCE = DATA['query']['categorymembers']
  idx_continue = DATA['continue']
  </code></pre>
  <p>But then, when it enters the loop :</p>
  <pre class="lang-py prettyprint-override"><code>while('continue' in DATA):
      PARAMS_FRANCE = {
          &quot;action&quot;: &quot;query&quot;,
          &quot;cmtitle&quot;: 'Catégorie:Portail:France/Articles liés',
          &quot;list&quot;: &quot;categorymembers&quot;,
          &quot;cmlimit&quot;: 500,
          &quot;continue&quot;: idx_continue,
          &quot;format&quot;: &quot;json&quot;
      }
  
      R = S.get(url=URL, params=PARAMS_FRANCE)
      DATA = R.json()
      PAGES_FRANCE = DATA['query']['categorymembers']
      idx_continue = DATA['continue']
  </code></pre>
  <p>It returns me the following error when I print <code>DATA</code>:</p>
  <pre class="lang-json prettyprint-override"><code>{
     &quot;error&quot;:{
        &quot;code&quot;:&quot;badcontinue&quot;,
        &quot;info&quot;:&quot;Invalid continue param. You should pass the original value returned by the previous query.&quot;,
        &quot;*&quot;:&quot;See https://fr.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;amp;gt; for notice of API deprecations and breaking changes.&quot;
     },
     &quot;servedby&quot;:&quot;mw1390&quot;
  }
  </code></pre>
  <p>Except I gave all the content of <code>continue</code> so what could be the problem ?</p>
  <p>Thank you</p>