Skip to content

Instantly share code, notes, and snippets.

@sakshamchhimwal
Created November 17, 2022 14:34
Show Gist options
  • Save sakshamchhimwal/55548e2dbc48d6719ce5ecd58a77191d to your computer and use it in GitHub Desktop.
Save sakshamchhimwal/55548e2dbc48d6719ce5ecd58a77191d to your computer and use it in GitHub Desktop.
csclk q
# 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 + &#34;&pnt_ucountp=<5&pnt_icountp=>1&bao=and&#34;
url = url + &#34;&galactic=Above&galsearch=75&#34;
url = url + &#34;&action=Search+Exposures&#34;
print url
# retrieve URL and  write results to filename
filename = &#34;out_py.txt&#34;
urllib.urlretrieve&#40;url&#44;filename&#41;
### Done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment