Subj : Re: Automated Posts Question To : Warpslide From : Jeff Earle Date : Sun Apr 27 2025 04:11 pm On 27 Apr 2025, Warpslide said the following... Wa> Wa> You can get curl, iconv, grep, sed & awk for Windows: Wa> Wa> curl: Wa> https://curl.se/windows/ Wa> Wa> iconv: Wa> https://gnuwin32.sourceforge.net/packages/libiconv.htm Wa> Wa> grep: Wa> https://gnuwin32.sourceforge.net/packages/grep.htm Wa> Wa> sed: Wa> https://gnuwin32.sourceforge.net/packages/sed.htm Wa> Wa> awk: Wa> https://gnuwin32.sourceforge.net/packages/gawk.htm Wa> Wa> Wa> I just tried this on my Windows 10 32bit install with the above programs Wa> & it seemed to work: Wa> Wa> Wa> curl -o weather.tmp Wa> https://weather.gc.ca/forecast/public_bulletins_e.html?Bulletin=fpcn11.cwt Wa> sed -i -n "/
/,/<\/pre>/{ /pre>/d; p }" weather.tmp
 Wa> iconv -f utf-8 -t cp437//translit weather.tmp > weather.txt
 Wa> awk -v RS="" "/City of Hamilton/" weather.txt > hamilton.txt
 Wa> 
 Wa> 
 Wa> After this, you will have three files the directory you ran the commands
 Wa> from.
 Wa> 
 Wa> weather.tmp = The weather forecast downloaded in UTF-8
 Wa> weather.txt = The weather forecast in CP437
 Wa> hamilton.txt = Just the forecast for the City of Hamilton
 Wa> 
 Wa> 
 Wa> From there you can use mutil to post these to whatever message base you
 Wa> like.

Thank you so much! This might just what I have been looking for.
Much appreciated. 

.... Reward for a job well done: More work

--- Mystic BBS v1.12 A48 (Windows/64)
 * Origin: Mystic Realms - A Social Media Alternative (21:1/216)

.