Windows script to capture Spotlight images wanted


jimbo45

Well-known member
Pro User
VIP
Local time
10:12 AM
Posts
4,982
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
Hi folks
Any equivalent of wget in Windows to capture images from a web site

In Linux it's easy enough -- e.g I want a spotlight image - after the robots=off you need the URL - the forum here has translated the URL but you need the actual URL. I think if you can install wget in the WSL you can run this in Windows too.

[hrafn@refur ~]$ wget -nd -H -p -A jpg,jpeg,png,gif -e robots=off Taughannock Falls State Park

processing starts ------

--2023-10-10 10:18:49-- Taughannock Falls State Park
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving bing.gifposter.com (bing.gifposter.com)... 172.67.179.129, 104.21.51.112, 2606:4700:3030::ac43:b381, ...
Connecting to bing.gifposter.com (bing.gifposter.com)|172.67.179.129|:443... connected.
HTTP request sent, awaiting response... 200 OK

After some more processing it comes out with
-2023-10-10 10:18:50-- https://h2.gifposter.com/bingImages/TaughannockFalls_1920x1080.jpg
Resolving h2.gifposter.com (h2.gifposter.com)... 172.67.179.129, 104.21.51.112, 2606:4700:3030::ac43:b381, ...
Connecting to h2.gifposter.com (h2.gifposter.com)|172.67.179.129|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 284667 (278K) [image/jpeg]
Saving to: ‘TaughannockFalls_1920x1080.jpg’

TaughannockFalls_1920x1080.jpg 100%[=========================================================================>] 278.00K --.-KB/s in 0.03s

2023-10-10 10:18:51 (10.7 MB/s) - ‘TaughannockFalls_1920x1080.jpg’ saved [284667/284667]

And the picture is :
TaughannockFalls_1920x1080.jpg

Wget isn't always 100 reliable but it's one command with the URL so using the history file to get all the url's from the spotify images one could automate this whole process. It's probably easier in python or json but for this process it seems to work OK.


cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
I mean the text under the pic. :-)
it generates 5 files including a twitter icon - I didn't want the text !!! but it's available.

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
This is simpler

1) create a txt file with all the URLs in it (I'm just using one for a test)

2) run this command

Screenshot_20231010_125004.png

open file with a web browser -- then you've got the text as well plus link if you want the full image. "Seemples and Q.E.D

Screenshot_20231010_125459.png
@Ghot

text is here !!!! as you can see in the link


cheers
jimbo
 
Last edited:

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7

My Computers

System One System Two

  • OS
    Win 11 Home ♦♦♦26100.3775 ♦♦♦♦♦♦♦24H2 ♦♦♦non-Insider
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE (BIOS 5002)
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    2x Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    DRW-24B1ST CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    Cooler Master ATCS 840 Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    300/300
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Internet Security
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® (not in use)
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Mouse
    Logitech Optical M-BT96a
    Keyboard
    Logitech Classic Keybooard 200
    Internet Speed
    300/300
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 15 years?
Here's a script for reading a text file filled with URL's, and downloading all wallpaper sizes. Note: it's written to parse bing.gifposter.com links, so it won't work on other sites without changes.

powershell -f bingposter.ps1 URL.txt
Code:
if ($args.Count -eq 0) {
    exit
}

$ProgressPreference = 'SilentlyContinue'

Get-Content $args[0] |% {
    Write-Host "Downloading $_"
    $HTML = wget $_
    ($HTML.Links | Where-Object { $_.outerText -match "Download" -and $_.download -match "jpg" }).href |% {
        $FileName = ($_ -split '/')[2]
        wget "https://bing.gifposter.com$_" -O $FileName
    }
}
 

My Computer

System One

  • OS
    Windows 7

Latest Support Threads

Back
Top Bottom