graphPaname/app/dummy_request.py

17 lines
382 B
Python
Raw Normal View History

2020-05-21 17:21:36 +02:00
from requests import get
def dummy_request(url):
request = get(url)
print(request.text)
def main():
dummy_request(
"https://opendata.paris.fr/api/records/1.0/search/?dataset=velib-disponibilite-en-temps-reel&q=&facet=name&facet=is_installed&facet=is_renting&facet=is_returning&facet=nom_arrondissement_communes"
)
if __name__ == "__main__":
main()