1

How do I open a Ghost local html file in which I want to run javascript? I only know how to do it from a tutorial from the internet.

from ghost import Ghost
ghost = Ghost()
page, extra_resources = ghost.open(url)
Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
agrynchuk
  • 4,597
  • 3
  • 17
  • 17

1 Answers1

0

Instead of the url provide the local location.

Example: page, extra_resources = ghost.open('/home/dan/index.html')

Sibi
  • 47,472
  • 16
  • 95
  • 163