jojoleprowebsite

[Done] The Sauce of https://jojolepro.com
git clone https://git.jojolepro.com/jojoleprowebsite.git
Log | Files | Refs | README | LICENSE

commit 65bb05173bb3a9ca15249605f3dece6ea1206d82
parent b22d3ea2e5f58d748d4bd9a6781b7463cbe33020
Author: Joël Lupien (Jojolepro) <jojolepro@jojolepro.com>
Date:   Sat,  9 Jan 2021 15:56:46 -0500

fix errors in projects page. patch error in build script.

Diffstat:
Mbuild.sh | 2+-
Mbuild/blog/2020-03-31_extracting_data_from_websites/index.html | 6+++---
Mbuild/index.html | 2+-
Msrc/projects/index.txt | 1-
4 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/build.sh b/build.sh @@ -18,7 +18,7 @@ while read -r page; do sed -E "s|([^=][^\'\"])(https[:]//[^ )]*)|\1<a href='\2'>\2</a>|g" | - sed -E "s|^(https[:]//[^ )]{50})([^ )]*)|<a href='\0'>\1</a>|g" | + sed -E "s|^(https[:]//[^ )]{2,71})([^ )]*)|<a href='\0'>\1</a>|g" | sed -E "s/^\.\/.*\.(png|jpg|svg)/<img src='\0'\/>/g" | diff --git a/build/blog/2020-03-31_extracting_data_from_websites/index.html b/build/blog/2020-03-31_extracting_data_from_websites/index.html @@ -114,7 +114,7 @@ No matter the way the page was made, we first need to identify what we want. As an example to illustrate what we will be doing, I will be extracting weather radar data from a dynamic government website. -https://weather.gc.ca/radar/index_e.html?id=WUJ +<a href='https://weather.gc.ca/radar/index_e.html?id=WUJ'>https://weather.gc.ca/radar/index_e.html?id=WUJ</a> I bet the link will eventually cease to work, but in any case, you can follow along with any website in the next sections in case this one doesn't work @@ -259,8 +259,8 @@ $ cat /tmp/data.txt | jq -r '.short | map(.src) | .[]' | sed \ If we look at our file, we see that everything looks good: $ cat /tmp/urls.txt -<a href='https://weather.gc.ca/data/radar/temp_image//WUJ/WUJ_PRECIP_RAIN_2020_03_31_...'>https://weather.gc.ca/data/radar/temp_image//WUJ/WUJ_PRECI</a> -<a href='https://weather.gc.ca/data/radar/temp_image//WUJ/WUJ_PRECIP_RAIN_2020_03_31_...'>https://weather.gc.ca/data/radar/temp_image//WUJ/WUJ_PRECI</a> +<a href='https://weather.gc.ca/data/radar/temp_image//WUJ/WUJ_PRECIP_RAIN_2020_03_31_...'>https://weather.gc.ca/data/radar/temp_image//WUJ/WUJ_PRECIP_RAIN_2020_03_31_...</a> +<a href='https://weather.gc.ca/data/radar/temp_image//WUJ/WUJ_PRECIP_RAIN_2020_03_31_...'>https://weather.gc.ca/data/radar/temp_image//WUJ/WUJ_PRECIP_RAIN_2020_03_31_...</a> .... and finally, we can download our images! diff --git a/build/index.html b/build/index.html @@ -96,7 +96,7 @@ Portfolio : <a href='https://jojolepro.com/PortfolioJoelLupien.pdf'>https://jojo Donate ================================================================================ If you like the work I do, please consider donating on Patreon: -https://patreon.com/jojolepro +<a href='https://patreon.com/jojolepro'>https://patreon.com/jojolepro</a> Or by Bitcoin: 15NDruDUDr3KaMjt87BvUJaayEzy5c765Z diff --git a/src/projects/index.txt b/src/projects/index.txt @@ -289,4 +289,3 @@ Images: ./shotcaller1.png Videos: https://github.com/amethyst/shotcaller/blob/master/media/shotcaller-prototype.mp4 -