You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resulting in list index out of range error. To get around this (just in case others find the same problem) I modified my script to declare export_escape=1 in the arguments to force double-quotes; I then updated the parser to split on '";"' instead of ";"
There's an issue with parsing returned data with URLs that include a semicolon:
From /python_semrush/semrush.py
As an example this URL was passed from a call to the organic_phrase function:
http://www.hilton.com/en/hotels/content/SPTSHHF/media/pdf/Tangerine_Bar_2.pdf;jsessionid=DTE5TAZBV525MCSGBI12VCQ
Resulting in list index out of range error. To get around this (just in case others find the same problem) I modified my script to declare
export_escape=1
in the arguments to force double-quotes; I then updated the parser to split on'";"'
instead of";"
The new code looks like this:
(lines 75-89 of /python_semrush/semrush.py)
I'm sure there is a better way to do this, but in the meantime, this is a workaround that works!
The text was updated successfully, but these errors were encountered: