1

I've been using the code in eusoubrasileiro's answer here to download webpages with Python.

This doesn't seem to download interactive maps, such as the one found on this nyt page.

Is it possible to download interactive maps such as the one referenced on the NYT page above using Python? If so, what do I need to look at adding to my code in order to do so? Is there a term other than "interactive map" that I might have luck searching for to learn more about this?

Thanks.

Dave X.
  • 11
  • 1

1 Answers1

0

Interactivity on the we is mostly powered by JavaScript. It would also call out to other web resources, API's etc. You might be able to download that and run it in your browser but it sounds like a lot of work, and you'll never get it truly offline.

Your best bet is most likely to reverse engineer it, figure out where the data is coming from and if you can get access to it, build the interactive part yourself.

moorecode
  • 11
  • 1
  • Thanks. Does this remain true even if I don't want to actually interact with the data at all? I just want to get an image of what the graphic looks like when the web page loads. My other option is to just screenshot it each day, but I was hoping to use Python instead. – Dave X. Nov 16 '20 at 20:09