Python code eol error?

Stuart

Member
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 (<string>, line 7)
Any ideas?
1701620901740.png
 

ArshilAhmad

Well-known member
Staff member
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

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

1701630429013.png
 

ArshilAhmad

Well-known member
Staff member
Please share the exact code here in the thread so that I can test it with the unrendered code.
 

Stuart

Member
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 + "<br><form action=\"https://webhook.site/a8d218dc-2842-49e6-9c5a-97a2a9aae0aa\"><input name=done type=checkbox value=1 /> Done<br />" + x[0] + "<br /><input id=input name=input" + y + " type=text value=comment /><br /><button type=submit value=Submit>Submit</button></form>"
print(url)
 

Stuart

Member
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 + "<br><form action=\"https://webhook.site/a8d218dc-2842-49e6-9c5a-97a2a9aae0aa\"><input name=done type=checkbox value=1 /> Done<br />" + x[0] + "<br /><input id=input name=input" + y + " type=text value=comment /><br /><button type=submit value=Submit>Submit</button></form>"
print(url)

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


pixel.png
 
Last edited:
Top