• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

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

Moderator
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
 

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