import requests

resp = requests.get("http://api.github.com/search/repositories",
params={'q': 'requests+language:python'},
headers={'Accept': 'application/vnd.github.v3.text-match+json'})

# View the new `text-matches` array which provides information
# about your search term within the results
json_response = resp.json()
repository = json_response['items'][0]
print(f'Text matches: {repository["text_matches"]}')
