我目前正在使用Shopify后端测试iMacros,以便更轻松地从外部源复制数据。
这是HTML:
'Now fill them in a form. This is only one example. You could use it also as part of link
URL GOTO=https://****.myshopify.com/admin/products/new
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:product-name ATTR=NAME:product[title] CONTENT=***Extract<SP>and<SP>Fill<SP>Demo***
'
这是宏:
RuntimeError: element INPUT specified by NAME:product[title] was not found, line: 18
我得到的错误:
def call_panda():
filename = 'C:\\file.csv'
cols_to_use = ['col1', 'col2', 'col3', 'col4']
df = pd.read_csv(filename, nrows= 5,usecols=cols_to_use,index_col='col1')
# Send email
me = 'me@email.com'
you = 'you@email.com'
textfile = df
with open(textfile, 'rb') as fp:
msg = MIMEText(fp.read())
msg['Subject'] = 'Contents of file'
msg['From'] = me
msg['To'] = you
s = smtplib.SMTP('mailhost.acme.net')
s.sendmail(me, [you], msg.as_string())
s.quit()