Advertisement
clairec

grab.py

Dec 15th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #/usr/bin/env python3
  2. import urllib.request
  3.  
  4. req = urllib.request.Request("http://www.wrh.noaa.gov/mesowest/getobextXml.php?sid=KFAT&num=1", headers = {"User-Agent" : "Mozilla/5.0"})
  5. xml = urllib.request.urlopen(req).read()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement