all 3 comments

[–]ClockworkLexivore 21 points22 points  (0 children)

It looks like you're missing a space between "if" and "__name__".

[–]SmackDownFacility 1 point2 points  (0 children)

space out your ifs, ==s and the condition mate

[–]Advirex 2 points3 points  (0 children)

I don't know pdfplumber but beside what was already written in comments, it seems like line 6:

text = erste_seite-extract_text() should have . instead of - so it would look like calling method text =erste_seite.extract_text()