Ghost is giving me this error when I execute fallowing code:
from ghost import Ghost
from bs4 import BeautifulSoup
url = "https://wyszukiwarkaregon.stat.gov.pl/appBIR/index.aspx"
ghost = Ghost()
page, resources = ghost.open(url)
page, resources = ghost.evaluate(
"document.getElementById('btnNowaCaptcha').click();")
soup = BeautifulSoup(ghost.content)
capcha = soup.find(id='imgCaptch')
But when I use pdb and execute once more last two lines everything is fine. Is anyone know why?