title: AJAX web scraping using python Requests
body: <p>I was trying to scrape <a href="https://www.assetmanagement.hsbc.de/de/institutional-investors/fund-centre?f=Yes&amp;n=-1&amp;v=Documents" rel="nofollow noreferrer">this website</a> but was'nt getting the table data. I even got the request data from the Chrome dev tools but I cannot find out what I'm doing wrong.</p>
  <p>Here is my script:</p>
  <pre><code>import requests,json
  url='https://www.assetmanagement.hsbc.de/api/v1/nav/funds'
  payload={&quot;appliedFilters&quot;:[[{&quot;active&quot;:True,&quot;id&quot;:&quot;Yes&quot;}]],&quot;paging&quot;:{&quot;fundsPerPage&quot;:-1,&quot;currentPage&quot;:1},&quot;view&quot;:&quot;Documents&quot;,&quot;searchTerm&quot;:[],&quot;selectedValues&quot;:[],&quot;pageInformation&quot;:{&quot;country&quot;:&quot;DE&quot;,&quot;language&quot;:&quot;DE&quot;,&quot;investorType&quot;:&quot;INST&quot;,&quot;tokenIssue&quot;:{&quot;url&quot;:&quot;/api/v1/token/issue&quot;},&quot;dataUrl&quot;:{&quot;url&quot;:&quot;/api/v1/nav/funds&quot;,&quot;id&quot;:&quot;e0FFNDg5MTJELUFEMzEtNEQ5RC04MzA4LTdBQzZERTgyQTc4Rn0=&quot;},&quot;shareClassUrl&quot;:{&quot;url&quot;:&quot;/api/v1/nav/shareclass&quot;,&quot;id&quot;:&quot;ezUxODdjODJiLWY1YmItNDIzOC1hM2Y0LWY5NzZlY2JmMTU3OX0=&quot;},&quot;filterUrl&quot;:{&quot;url&quot;:&quot;/api/v1/nav/filters&quot;,&quot;id&quot;:&quot;ezRFREYxQTU3LTVENkYtNDBDRC1CMjJDLTQ0NDc4Nzc1NTlFQn0=&quot;},&quot;presentationUrl&quot;:{&quot;url&quot;:&quot;/api/v1/nav/presentation&quot;,&quot;id&quot;:&quot;e0E1NEZDODZGLUE5MDctNDUzQi04RTYyLTIxNDNBMEM1MEVGQ30=&quot;},&quot;liveDataUrl&quot;:{&quot;id&quot;:&quot;ezlEMjA2MDk5LUNCRTItNENGMy1BRThBLUM0RTMwMEIzMjlDQ30=&quot;},&quot;fundDetailPageUrl&quot;:&quot;/de/institutional-investors/fund-centre&quot;,&quot;forceHttps&quot;:True}}
  headers={&quot;User-Agent&quot;: &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36&quot;}
  r = requests.post(url,headers=headers,data=payload)
  print(r.content)
  </code></pre>