Thank you for the awesome search engine scraping tool!
I'm trying GoogleScraper to extract some URLs for given search terms. GoogleScraper works well with Google & Bing, but it cannot extract search results from Yahoo.
Here are some commands:
Exception in thread [yahoo]SelScrape:
Traceback (most recent call last):
File "/Users/xyz/projects/googlesearch/.virtualenv/lib/python3.4/site-packages/GoogleScraper/selenium_mode.py", line 455, in _find_next_page_element
WebDriverWait(self.webdriver, 5).until(EC.element_to_be_clickable((By.CSS_SELECTOR, selector)))
File "/Users/xyz/projects/googlesearch/.virtualenv/lib/python3.4/site-packages/selenium/webdriver/support/wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
Screenshot: available via screen
Because I search with Japanese terms, I tried to change the search URL for Yahoo in scrape_config.py file as the following:
selenium.common.exceptions.NoSuchElementException: Message: {"errorMessage":"Unable to find element with css selector '.compPagination strong'","request":{"headers":{"Accept":"application/json","Accept-Encoding":"identity","Connection":"close","Content-Length":"113","Content-Type":"application/json;charset=UTF-8","Host":"127.0.0.1:50667","User-Agent":"Python-urllib/3.4"},"httpVersion":"1.1","method":"POST","post":"{\"value\": \".compPagination strong\", \"using\": \"css selector\", \"sessionId\": \"c8247ec0-a669-11e5-8029-e94abf73bc4c\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/c8247ec0-a669-11e5-8029-e94abf73bc4c/element"}}
Screenshot: available via screen
Is there anything wrong with my setting?
I'm using Mac OS 10.10.5
Thank you for the awesome search engine scraping tool!
I'm trying GoogleScraper to extract some URLs for given search terms. GoogleScraper works well with Google & Bing, but it cannot extract search results from Yahoo. Here are some commands:
No results was returned.
Try to scrape with selenium:
The following error occurs:
Because I search with Japanese terms, I tried to change the search URL for Yahoo in scrape_config.py file as the following:
And, get another error:
Is there anything wrong with my setting? I'm using Mac OS 10.10.5
Thank you!