import requests


request = requests.get('https://fr.wikipedia.org/w/api.php?action=query&list=search&srsearch=9%20rue%20Las%20Cases&formatversion=2&prop=revisions&rvprop=content&format=json&formatversion=2')
return_json_API = request.json()#get json file

print(type(return_json_API))

#for element in return_json_API:
  #  print(element)
print(return_json_API["query"]["search"][0]["snippet"])

search_JSON = return_json_API["query"]


search_JSONII = search_JSON["search"]
search_JSONIII = search_JSONII[0]

wiki = search_JSONIII["snippet"]



#print(wiki)
print(type(wiki))
538d83c0f9b21922174d3ccf1a23ce6c90dbf9aa
<mask token>

<mask token>
print(type(return_json_API))
print(return_json_API['query']['search'][0]['snippet'])
<mask token>
print(type(wiki))

<mask token>
request = requests.get(
    'https://fr.wikipedia.org/w/api.php?action=query&list=search&srsearch=9%20rue%20Las%20Cases&formatversion=2&prop=revisions&rvprop=content&format=json&formatversion=2'
    )
return_json_API = request.json()
print(type(return_json_API))
print(return_json_API['query']['search'][0]['snippet'])
search_JSON = return_json_API['query']
search_JSONII = search_JSON['search']
search_JSONIII = search_JSONII[0]
wiki = search_JSONIII['snippet']
print(type(wiki))

import requests
request = requests.get(
    'https://fr.wikipedia.org/w/api.php?action=query&list=search&srsearch=9%20rue%20Las%20Cases&formatversion=2&prop=revisions&rvprop=content&format=json&formatversion=2'
    )
return_json_API = request.json()
print(type(return_json_API))
print(return_json_API['query']['search'][0]['snippet'])
search_JSON = return_json_API['query']
search_JSONII = search_JSON['search']
search_JSONIII = search_JSONII[0]
wiki = search_JSONIII['snippet']
print(type(wiki))

import requests


request = requests.get('https://fr.wikipedia.org/w/api.php?action=query&list=search&srsearch=9%20rue%20Las%20Cases&formatversion=2&prop=revisions&rvprop=content&format=json&formatversion=2')
return_json_API = request.json()#get json file

print(type(return_json_API))

#for element in return_json_API:
  #  print(element)
print(return_json_API["query"]["search"][0]["snippet"])

search_JSON = return_json_API["query"]


search_JSONII = search_JSON["search"]
search_JSONIII = search_JSONII[0]

wiki = search_JSONIII["snippet"]



#print(wiki)
print(type(wiki))