daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests
  2. import webbrowser
  3.  
  4. url = 'https://www.avis.com/en/home'
  5.  
  6. payload = {
  7.     "anguPicLoc":"Chicago Midway Intl Airport, Chicago, Illinois, United States-(MDW)",
  8.     "reservationModel.pickUpDateDisplay":"05/05/2018",
  9.     "reservationModel.dropDateDisplay":"05/06/2018"
  10. }
  11.  
  12. def main():
  13.     r = requests.post(url, payload)
  14.     with open("requests_results.html","w") as f:
  15.         f.write(r.content)
  16.         webbrowser.open("requests_results.html")
  17.     return 0
  18.  
  19. if __name__ == '__main__':
  20.     main()
RAW Paste Data
Top