Created
November 17, 2022 14:34
-
-
Save sakshamchhimwal/55548e2dbc48d6719ce5ecd58a77191d to your computer and use it in GitHub Desktop.
csclk q
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change above line to point to local | |
# python executable | |
import urllib, urlparse, string, time | |
# create URL with desired search parameters | |
url = "http://archive.stsci.edu/pointings/search.php?" | |
url = url + "primary=ACS&outputformat=CSV" | |
url = url + "&pnt_ucountp=<5&pnt_icountp=>1&bao=and" | |
url = url + "&galactic=Above&galsearch=75" | |
url = url + "&action=Search+Exposures" | |
print url | |
# retrieve URL and write results to filename | |
filename = "out_py.txt" | |
urllib.urlretrieve(url,filename) | |
### Done! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment