Mar-22-2020, 10:01 AM
(Mar-22-2020, 09:37 AM)ndc85430 Wrote: Yes, line 37 defines the function. Not sure what you mean by the last question. Remember that you need to define the function before it's called, so if your calls were before that line, then they need to be after.
ndc85430,
I have since changed the last line of my .py to calling the function:
insertVariablesIntoTable()This then results in the following error:
Quote:Traceback (most recent call last):
File "HTML2CSV-NoWrite3Variables-to-MySQL.Python.Variable.Passoff.MySQL.INSERT.py", line 62, in <module>
insertVariablesIntoTable()
NameError: name 'insertVariablesIntoTable' is not defined
I then go back in the .py and change line 37 from:
def insertVariblesIntoTable(allTitle, allOpinion, allURL):to: (which is now line 38 w/ commenting line 37 out)
def insertVariablesIntoTable():Then re-run the .py and receive the following error:
Quote:Failed to insert into MySQL table Failed processing format-parameters; Python 'resultset' cannot be converted to a MySQL type
MySQL connection is closed
Perhaps we are getting somewhere with this!
“And one of the elders saith unto me, Weep not: behold, the Lion of the tribe of Juda, the Root of David, hath prevailed to open the book,...” - Revelation 5:5 (KJV)
“And oppress not the widow, nor the fatherless, the stranger, nor the poor; and ...” - Zechariah 7:10 (KJV)
#LetHISPeopleGo
“And oppress not the widow, nor the fatherless, the stranger, nor the poor; and ...” - Zechariah 7:10 (KJV)
#LetHISPeopleGo