traffictest.py 376 B

1234567891011121314
  1. import requests
  2. url = "https://similarweb2.p.rapidapi.com/trafficoverview"
  3. querystring = {"website":"https://www.shopify.com"}
  4. headers = {
  5. 'x-rapidapi-key': "6dd30886e0msh7aefc9a0a794398p1896f2jsn275c45475609",
  6. 'x-rapidapi-host': "similarweb2.p.rapidapi.com"
  7. }
  8. response = requests.request("GET", url, headers=headers, params=querystring)
  9. print(response.text)