title: Paging with Microsoft Graph API on Python
body: <p>I have been using some microsoft code sample, to start building an app that retrieves the groups and their members(<code>groups/$expand=members</code>). Now my problem is that because there is a lot of data I of course could not get everything through just one HTTP Request, so to test if I can access to the token value of the @odata.nextLink element that is in the json file I get as response, I've been trying to print it from my python program, and it retrieves me an error because of the '@'character (when I am trying to do print(result.@odata.nextLink) ). Maybe I am not using it correctly, so I would like to know guys for example making some arrows a html file that allows me to go back and forth, using the nextLink token. </p>
  
  <p>This was my attempt to print the nextLink token (As I said I'm just trying to print the token value to see if I can use it for creating a page visualization in html, with arrows and so on):</p>
  
  <pre><code>@APP.route('/query')
  def query():
      # query = "groups?$filter=startswith(displayName,'CASS')"
      query = "groups/?$expand=members"
      result = MSGRAPH.get(query, headers=request_headers()).data
  
      print(result.@odata.nextLink)
      return flask.render_template('query.html',result=result, query=query)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ozY8u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ozY8u.png" alt="enter image description here"></a></p>
  
  <p>This is what i want to grab:</p>
  
  <p><a href="https://i.stack.imgur.com/K5Vb9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K5Vb9.png" alt="enter image description here"></a></p>
  
  <p>Thanks!</p>