-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Content-ID: <5543bfeb-83d9-69f8-14ea-6fc31c7120d5@Telcontar.valinor> El 2023-04-28 a las 14:25 +0200, Carlos E. R. escribió:
On 2023-04-27 23:03, Carlos E. R. wrote:
Hi,
I have a script (from somebody else) to download the image of the day from the NASA. I have modified the script quite a bit to download a range of days, even years of them.
...
(the full script I modified is: https://paste.opensuse.org/7f484bb7c807)
I just modified it further, because besides png, there are some gif. And some JPG, PNG, and GIF.
And I just discovered that there are fotos down to 19950616. My code suffers from year 2000 effect, LOL :-D
(I think I know how to solve that, but now it is busy downloading this century photos)
Just downloading the photos from year 2000 to year 2023 is still running at 19 hours. Year 2020 currently. [...] Took 6 hours to do. cer@Isengard:~/APOD> ls *jpg | wc -l 7876 cer@Isengard:~/APOD> ls *JPG | wc -l ls: cannot access '*JPG': No such file or directory 0 cer@Isengard:~/APOD> ls *png | wc -l 80 cer@Isengard:~/APOD> ls *PNG | wc -l ls: cannot access '*PNG': No such file or directory 0 cer@Isengard:~/APOD> ls *gif | wc -l 336 cer@Isengard:~/APOD> ls *GIF | wc -l ls: cannot access '*GIF': No such file or directory 0 cer@Isengard:~/APOD> No uppercases? I saw some in the failed htmls previously. Ah, I see I missed a "-i" in the grep for jpg. 174 youtube videos were skipped. 75 were skipped for other reasons. Example skipped file: 2001 April 18 <br> <applet code=HyprCube.class width=400 height=458> <param name=speed value=10> <param name=projection value=0> <img src="image/0104/hyprcube.gif" width=400 height=456 alt="See Explanation. Clicking on the picture will download the highest resolution version available."> </applet> </center> 29 had the string "Clicking on the picture will download" 2021 December 10 <br>. <a href="image/2112/Eclipseclock-final2.JPG"> <IMG SRC="image/2112/Eclipseclock-final2_1024c.JPG" alt="See Explanation. Clicking on the picture will download the highest resolution version available." style="max-width:100%"></a> But it is a JPG, was missed for uppercase. There are still 46 files skipped for several reasons. 2001 June 28 <br> <img src="image/0106/marstopography_mola.jpg" ALT="Please click on a specific area to see a zoom in of that area" ismap usemap="#map1" border=0> <map name="map1" nohref > <area coords="58,112,583,141" href="http://ltpwww.gsfc.nasa.gov/tharsis/Mars_topography_from_MOLA/M_-180_180_70_90.html"> <area coords="58,141,73,155" href="http://ltpwww.gsfc.nasa.gov/tharsis/Mars_topography_from_MOLA/M_-180_-170_60_70.html"> <area coords="73,141,88,155" href="http://ltpwww.gsfc.nasa.gov/tharsis/Mars_topography_from_MOLA/M_-170_-160_60_70.html"> <area coords="88,141,102,155" href="http://ltpwww.gsfc.nasa.gov/tharsis/Mars_topography_from_MOLA/M_-160_-150_60_70.html"> 2002 May 22 <br> <a href="#".. onMouseOver="if (document.images) document.imagename1.src= 'image/0205/Eiffeltower2_lagault.jpg';" onMouseOut="if (document.images) document.imagename1.src= 'image/0205/Eiffeltower1_lagault.jpg';" ONCLICK="return false;"> <IMG SRC="image/0205/Eiffeltower1_lagault.jpg" name=imagename1. alt="See Explanation. Rolling mouse over image will bring up. an annotated version. No higher. resolution version is available today."></a> </center> 2002 July 4 <br> <a href="#".. onMouseOver="if (document.images) document.imagename1.src='image/0207/ngc4365-15b-02sm.jpg';" onMouseOut="if (document.images) document.imagename1.src='image/0207/ngc4365-15a-02sm.jpg';" ONCLICK="return false;"> <IMG SRC="image/0207/ngc4365-15a-02sm.jpg" name=imagename1. alt="See Explanation. Rolling mouse over image will bring up. an annotated version. No higher. resolution version is available today."></a> 2007 May 22.. <br> <embed src="image/0705/flvplayer.swf" width="584" height="428". type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer". flashvars="file=http://www.astro.physik.uni-goettingen.de/outreach/APOD/cont.flv&displayheight=428&image=image/0705/cont000.jpg&allowfullscreen=true" /> ... Still, I have 10,191,955 KiB in 16597 files (half of them are the tex description files), which is a lot of photos for slides used by my screensaver :-) - -- Cheers, Carlos E. R. (from openSUSE 15.4 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCZEwiqxwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVXa8AniLd/iTefCIfjR8/FGiE +KNmzXgaAJsFRe7e9RKCm45gQi2yanbmOZmlhg== =Oz7a -----END PGP SIGNATURE-----