[tpm] Scrape covid-19.ontario.ca?

Olaf Alders olaf.alders at gmail.com
Mon Oct 12 17:46:35 PDT 2020



> On Oct 12, 2020, at 8:02 PM, Felipe Gasper <felipe at felipegasper.com> wrote:
> 
> 
> 
>> On Oct 12, 2020, at 6:52 PM, zoffix at zoffix.com wrote:
>> 
>> Hi,
>> 
>>> 	Has anyone tried to scrape
>> 
>> Well, it's against terms of use. So, hopefully no one :) https://covid19results.ehealthontario.ca:4443/terms
> 
> Well I suppose there is that …
> 
> I was hoping to rig up something so I wouldn’t have to keep filling out that silly form every time I want to check. I get why they would only call if you’re positive, but at least an _email_ to let you know you’re negative would seem feasible.
> 
> Eh well. At least testing is readily available.

ToS aside, you may have more luck with https://metacpan.org/pod/WWW::Mechanize::Firefox <https://metacpan.org/pod/WWW::Mechanize::Firefox> when scraping something that needs to deal with JavaScript. (I haven’t tried this one myself, though)

Olaf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20201012/d73f79cd/attachment.html>


More information about the toronto-pm mailing list