python-semrush icon indicating copy to clipboard operation
python-semrush copied to clipboard

Change to splitlines

Open jroakes opened this issue 6 years ago • 0 comments

Here:

https://github.com/storerjeremy/python-semrush/blob/4dfd72d82185784180f739e219082c444c08b640/python_semrush/semrush.py#L79

Change to:

 lines = data.splitlines()

Here:

https://github.com/storerjeremy/python-semrush/blob/4dfd72d82185784180f739e219082c444c08b640/python_semrush/semrush.py#L67

Add:

if 'export_columns' in kwargs:
    kwargs['export_columns'] = ",".join([c.strip() for c in kwargs['export_columns'].split(',')])

jroakes avatar Feb 21 '19 18:02 jroakes