Open fcbits opened 5 years ago
I think the problem is Google search result pages which have been changed since last working version. In Lithuanian search scrapper scraps only Youtube results and csv_writer.py writes them down. If there are no Youtube results then there is nothing to write down and code returns error.
Response Traceback (most recent call last): File "miniconda3/lib/python3.7/site-packages/serpscrap/csv_writer.py", line 14, in write w.writerow(row) File "miniconda3/lib/python3.7/csv.py", line 155, in writerow return self.writer.writerow(self._dict_to_list(rowdict)) File "miniconda3/lib/python3.7/csv.py", line 151, in _dict_to_list
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "example_serp_urls.py", line 12, in
scrap.as_csv('/tmp/outputurls')
File "miniconda3/lib/python3.7/site-packages/serpscrap/serpscrap.py", line 148, in as_csv
writer.write(file_path + '.csv', self.results)
File "/miniconda3/lib/python3.7/site-packages/serpscrap/csv_writer.py", line 17, in write
raise Exception
Exception