07-23-2023, 10:32 AM
I am trying to extract the current date and time from this Wikipedia page (
I am posting my script below, but no matter what I do the page is not refreshing when I use wget - it will stay the same unless I open the link in a browser and clear my cache. Shouldn't the script below do this? I tried --no-cache and --no-cookies but no success. Once I open chrome and go to this link (
wget --no-check-certificate --no-cache --no-cookies
[To see links please register here]
) using wget in the Windows 10 command prompt. This is for a personal app I am developing, so instead of trying to figure out more complicated c++ (only language I know, and barely) to convert my local time to UTC, then get ordinal dates for my project, I just want to download this page with wget and substring the information I need out of it. The page (when refreshed) has exactly the information I need. I could find another way to do this, but now I am taking it personal and trying to make it a learning experience since it seems it should be simple.I am posting my script below, but no matter what I do the page is not refreshing when I use wget - it will stay the same unless I open the link in a browser and clear my cache. Shouldn't the script below do this? I tried --no-cache and --no-cookies but no success. Once I open chrome and go to this link (
[To see links please register here]
) and click "purge" I can always use wget right after and it works. I just need this to be automatic without me manually refreshing.wget --no-check-certificate --no-cache --no-cookies
[To see links please register here]