• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

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