Python code eol error?

Status: Open · Asked by Stuart on · 0 views

Stuart Sandweiss — Question ·

I am trying to create a dynamic webpage based on the results of a google sheets
basically it goes through the array (list) and creates a string of HTML from it.
it works fine in IDLE but in Pabbly it gives me this error: EOL while scanning string literal (, line 7)
Any ideas?

Arshil Ahmad — Reply ·

Hi @Stuart,

Could you please share the Workflow URL and the code in which you are encountering this error? Additionally, record a short video running this code on an online compiler so that we can investigate the difference in responses.

Stuart Sandweiss — Reply ·

Also it keeps replacing the code in the window with rendered HTML...
But it seems to work still

Arshil Ahmad — Reply ·

Please share the exact code here in the thread so that I can test it with the unrendered code.

Stuart Sandweiss — Reply ·

url = ""
arr = [["Should we set it up so that acuity clients go through the whole calendly procedure?","",2],["1) Can you create a stripe account for yyy@yyy? there is no monthly charge www.google.com","",3],["2) Can you create a Twillio account for hfh@hfrh? there is no monthly charge ","",4],["3) I need a list of links you want on the sidebar (like the Strategy session notes)","",5]]
for x in arr:
y = str(x[2])
url = url + "

https://webhook.site/a8d218dc-2842-49e6-9c5a-97a2a9aae0aa\"> Done
" + x[0] + "

Submit"
print(url)

Stuart Sandweiss — Reply ·

Sorry the indentation got lost in the copying it should be like this:

url = ""
arr = [["Should we set it up so that acuity clients go through the whole calendly procedure?","",2],["1) Can you create a stripe account for yyy@yyy? there is no monthly charge www.google.com","",3],["2) Can you create a Twillio account for hfh@hfrh? there is no monthly charge ","",4],["3) I need a list of links you want on the sidebar (like the Strategy session notes)","",5]]
for x in arr:
y = str(x[2])
url = url + "

https://webhook.site/a8d218dc-2842-49e6-9c5a-97a2a9aae0aa\"> Done
" + x[0] + "

Submit"
print(url)

here is a video showing it working, and producing functional HTML code


[TABLE]
[TR]
[TD] [IMG alt="(1) Webhook.site - Test, process and transform emails and HTTP requests - Click Display Images to view thumbnail"]https://videolinks2.com/v/yvTbne/preview_with_play.gif[/IMG] [/TD]
[/TR]
[TR]
[TD] Watch Video [/TD]
[/TR]
[/TABLE]

Arshil Ahmad — Reply ·

Please allow us some time to look into this concern. We will get back to you shortly.

Back to all forum threads · Log in to reply