public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Walter Dnes <waltdnes@waltdnes.org>
To: Gentoo Users List <gentoo-user@lists.gentoo.org>
Subject: [gentoo-user] How do I zap a specific area of a gnumeric spreadsheet page?
Date: Thu, 21 Mar 2024 17:46:31 -0400	[thread overview]
Message-ID: <MTAwMDAzOS53ZG5lc2RheQ.1711057586@quikprotect> (raw)

  The province of Ontario does weekly Covid data updates which I
summarize and post on the DSLReports Canchat subforum, e.g.
https://www.dslreports.com/forum/r33854514-#google_vignette  Note the
data gap in the pink and brown lines on the 3rd and 4th graphs.  That's
actual missing data.  In the underlying spreadsheet page those gaps
initially show up as zeros.  I manually blank out region B1258:C1299
(i.e. 2023/09/09 to 2023/10/20) every week when I update so that it
doesn't show up as zero hospitalizations.  How do I set up and execute a
macro to to zap the contents of region B1258:C1299 on a page?

  I've recently solved another problem with the COVID data that I
mentioned in the past.  The data files could be downloaded by a browser
but "wget" was being rejected.  The data keepers seem to be filtering
based on the default "wget" user agent.  I've bypassed that by faking
a valid browser user agent... any valid browser user agent.


#!/bin/bash
rm -rf conposcovidloc.csv
wget --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0" https://data.ontario.ca/dataset/f4112442-bdc8-45d2-be3c-12efae72fb27/resource/455fd63b-603d-4608-8216-7d8647f43350/download/conposcovidloc.csv


#!/bin/bash
rm -rf region_hospital_icu_covid_data.csv
wget --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0" https://data.ontario.ca/dataset/8f3a449b-bde5-4631-ada6-8bd94dbc7d15/resource/e760480e-1f95-4634-a923-98161cfb02fa/download/region_hospital_icu_covid_data.csv


  Note that I have to first remove the previous week's file, because wget
won't overwrite it, and skips the download altogether.

-- 
Roses are red
Roses are blue
Depending on their velocity
Relative to you


             reply	other threads:[~2024-03-21 21:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-21 21:46 Walter Dnes [this message]
2024-03-21 22:02 ` [gentoo-user] How do I zap a specific area of a gnumeric spreadsheet page? Frank Steinmetzger
2024-03-22  4:20   ` Walter Dnes
2024-03-22  6:52     ` Paul Colquhoun
2024-03-22 18:33       ` Walter Dnes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MTAwMDAzOS53ZG5lc2RheQ.1711057586@quikprotect \
    --to=waltdnes@waltdnes.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox