after running error show
RajatTanwar@X MINGW64 ~
$ cd pib
RajatTanwar@X MINGW64 ~/pib (master)
$ source .env
To download PIB articles for a range of date do the following...
pib startDate endDate (format: yyyy-mm-dd)
for example to download articles from June 1st,2021 to Jun 15th,2021 enter
pib 2021-06-01 2021-07-01
for Entire Month of 2021 Enter (for example month of January)
pib_month Jan 2021
RajatTanwar@X MINGW64 ~/pib (master)
$ pib 2021-06-01 2021-06-15
2021-06-01
Unhandled error in Deferred:
Traceback (most recent call last):
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\crawler.py", line 192, in crawl
return self._crawl(crawler, *args, **kwargs)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\crawler.py", line 196, in _crawl
d = crawler.crawl(*args, **kwargs)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\twisted\internet\defer.py", line 1656, in unwindGenerator
return _cancellableInlineCallbacks(gen)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\twisted\internet\defer.py", line 1571, in _cancellableInlineCallbacks
_inlineCallbacks(None, g, status)
--- ---
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\twisted\internet\defer.py", line 1445, in _inlineCallbacks
result = current_context.run(g.send, result)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\crawler.py", line 87, in crawl
self.engine = self._create_engine()
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\crawler.py", line 101, in _create_engine
return ExecutionEngine(self, lambda : self.stop())
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\core\engine.py", line 69, in init
self.downloader = downloader_cls(crawler)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\core\downloader_init.py", line 83, in init
self.middleware = DownloaderMiddlewareManager.from_crawler(crawler)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\middleware.py", line 53, in from_crawler
return cls.from_settings(crawler.settings, crawler)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\middleware.py", line 35, in from_settings
mw = create_instance(mwcls, settings, crawler)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\utils\misc.py", line 167, in create_instance
instance = objcls.from_crawler(crawler, *args, **kwargs)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy_selenium\middlewares.py", line 71, in from_crawler
browser_executable_path=browser_executable_path
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy_selenium\middlewares.py", line 51, in init
self.driver = driver_klass(**driver_kwargs)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\selenium\webdriver\chrome\webdriver.py", line 73, in init
self.service.start()
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\selenium\webdriver\common\service.py", line 76, in start
stdin=PIPE)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\subproce
ss.py", line 775, in init
restore_signals, start_new_session)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\subproce
ss.py", line 1178, in _execute_child
startupinfo)
builtins.OSError: [WinError 193] %1 is not a valid Win32 application
2021-06-02
Unhandled error in Deferred:
Traceback (most recent call last):
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\crawler.py", line 192, in crawl
return self._crawl(crawler, *args, **kwargs)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\crawler.py", line 196, in _crawl
d = crawler.crawl(*args, **kwargs)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\twisted\internet\defer.py", line 1656, in unwindGenerator
return _cancellableInlineCallbacks(gen)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\twisted\internet\defer.py", line 1571, in _cancellableInlineCallbacks
_inlineCallbacks(None, g, status)
--- ---
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\twisted\internet\defer.py", line 1445, in _inlineCallbacks
result = current_context.run(g.send, result)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\crawler.py", line 87, in crawl
self.engine = self._create_engine()
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\crawler.py", line 101, in _create_engine
return ExecutionEngine(self, lambda : self.stop())
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\core\engine.py", line 69, in init
self.downloader = downloader_cls(crawler)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\core\downloader_init.py", line 83, in init
self.middleware = DownloaderMiddlewareManager.from_crawler(crawler)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\middleware.py", line 53, in from_crawler
return cls.from_settings(crawler.settings, crawler)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\middleware.py", line 35, in from_settings
mw = create_instance(mwcls, settings, crawler)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy\utils\misc.py", line 167, in create_instance
instance = objcls.from_crawler(crawler, *args, **kwargs)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy_selenium\middlewares.py", line 71, in from_crawler
browser_executable_path=browser_executable_path
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\scrapy_selenium\middlewares.py", line 51, in init
self.driver = driver_klass(**driver_kwargs)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\selenium\webdriver\chrome\webdriver.py", line 73, in init
self.service.start()
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\site-pac
kages\selenium\webdriver\common\service.py", line 76, in start
stdin=PIPE)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\subproce
ss.py", line 775, in init
restore_signals, start_new_session)
File "c:\users\rajattanwar\appdata\local\programs\python\python37\lib\subproce
ss.py", line 1178, in _execute_child
startupinfo)
builtins.OSError: [WinError 193] %1 is not a valid Win32 application
executing in Git-2.32.0.2-64-bit.exe