Open aidiss opened 9 years ago
Yeah, experienced this also yesterday. Will fix this in 3 hours after uni classes :)
Should be fixed now. Can you confirm?
2015-01-15 06:44:56,121 - GoogleScraper - INFO - 0 cache files found in .scrapec
ache/..........................................
Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\c\lib\threading.py", line 920, in _bootstrap_inner
self.run()
File "C:\c\lib\site-packages\GoogleScraper\selenium_mode.py", line 431, in run
self.search()
File "C:\c\lib\site-packages\GoogleScraper\selenium_mode.py", line 385, in sea
rch
super().after_search()
File "C:\c\lib\site-packages\GoogleScraper\scraping.py", line 400, in after_se
arch
if not self.store():
File "C:\c\lib\site-packages\GoogleScraper\scraping.py", line 334, in store
store_serp_result(serp)
File "C:\c\lib\site-packages\GoogleScraper\output_converter.py", line 65, in s
tore_serp_result
outfile.writeheader()
File "C:\c\lib\csv.py", line 142, in writeheader
self.writerow(header)
File "C:\c\lib\csv.py", line 153, in writerow
return self.writer.writerow(self._dict_to_list(rowdict))
File "C:\c\lib\csv.py", line 149, in _dict_to_list
+ ", ".join([repr(x) for x in wrong_fields]))
ValueError: dict contains fields not in fieldnames: 'domain', 'id', 'rank', 'sni
ppet'
Working on this.
testkeywords.txt includes:
output.json
About my installation
I have reinstalled GoogleScraper today with pip uninstall GoogleScraper and pip install GoogleScraper .
Also, it might be a seperate issue, but it seems like Chrome webdriver is still running after finishing scrapying.