Advertisement
rfmonk

search_four.py

Jan 10th, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3.  
  4. import socket
  5. sock = socket.socket()
  6. sock.connect(('maps.google.com', 80))
  7. sock.sendall(
  8.     'GET /maps/geo?q=207+N.+Defiance+St%2C+Archbold%2C+OH'
  9.     '&output=json&oe=utf8&sensor=false HTTP/1.1\r\n'
  10.     'Host: maps.google.com:80\r\n'
  11.     'User-Agent: search_four.py\r\n'
  12.     'Connection: close\r\n'
  13.     '\r\n')
  14. rawreply = sock.recv(4096)
  15. print rawreply
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement