On 13/05/2026 13:00, [email protected] wrote:
Send dorset mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://mailman.lug.org.uk/mailman/listinfo/dorset
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dorset digest..."


https://weather.metoffice.gov.uk/specialist-forecasts/coast-and-sea/inshore-waters-forecast
Look particularly in area-labelledby area7
class="card-content"
class=forecast-block"
etc.
Looking at the HTML, as soon as you click on a lower level tag, the == $0 disappears

Graeme
----------------------------------------------------------------------

Message: 1
Date: Tue, 12 May 2026 17:08:08 +0100
From: Graeme Gemmill <[email protected]>
To: [email protected]
Subject: [Dorset] Web scraping
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed

I've been using Beautiful Soup to scrape the local Met Office's Inshore
weather forecast? for display in the National Coastwatch lookouts at
Burton Bradstock and Charmouth for many months. Unfortunately, they've
just changed the format, so my carefully prepared Python script is
failing. Having to relearn? how to use BS is one thing, but it seems
that many of the tags I want to search for contain == $0, which BS
doesn't seem to be able to find. Does anyone know about this? I can't
find much illumination in Google.
Graeme

------------------------------

Message: 2
Date: Tue, 12 May 2026 18:38:34 +0100
From: Ralph Corderoy <[email protected]>
To: [email protected]
Subject: Re: [Dorset] Web scraping
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8

Hi Graeme,

I've been using Beautiful Soup to scrape the local Met Office's
Inshore weather forecast
What's the URL?

it seems that many of the tags I want to search for contain == $0,
which BS doesn't seem to be able to find.
Can you give an example that we can then look at ourselves in the
URL's HTML.



--
 Next meeting: Online, Jitsi, Tuesday, 2026-06-02 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  https://dorset.lug.org.uk
 New thread, don't hijack:  mailto:[email protected]

Reply via email to