Quantcast
Channel: Active questions tagged feed - Stack Overflow
Viewing all articles
Browse latest Browse all 539

A python client to ContextualWeb News API using RapidAPI

$
0
0

I am trying to consume ContextualWeb News API. The endpoint is described here:

https://rapidapi.com/contextualwebsearch/api/web-search

Here is the request snippet in Python as described in RapidAPI:

response = unirest.get("https://contextualwebsearch-websearch-v1.p.rapidapi.com/api/Search/NewsSearchAPI?autoCorrect=true&pageNumber=1&pageSize=10&q=Taylor+Swift&safeSearch=false",  headers={"X-RapidAPI-Host": "contextualwebsearch-websearch-v1.p.rapidapi.com","X-RapidAPI-Key": "XXXXXX"  })

How do I send the request and parse the response? Can you provide a complete code example for the News API?


Viewing all articles
Browse latest Browse all 539

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>