mardi 23 mai 2017

Python: Exception ignored in:

Code Used:

from selenium import webdriver
from bs4 import BeautifulSoup
from urllib.request import urlopen
from urllib.parse import urlparse
import requests, bs4

res = requests.get('http://ift.tt/2qg674w')
icesoup = bs4.BeautifulSoup(res.text,'lxml')
selectElems = icesoup.select('li')
len(selectElems)
type(selectElems[0])
selectElems[0].getText()

The main objective is to get the data of different products into an excel sheet. I just started working on it. Trying to create html objects for further processing.

The following is the output:

Exception ignored in: <bound method Service.__del__ of 
<selenium.webdriver.chrome.service.Service object at 0x0000026E252CA128>>
Traceback (most recent call last):
File "C:\Users\Santosh\Anaconda3\lib\site-
packages\selenium\webdriver\common\service.py", line 163, in __del__
File "C:\Users\Santosh\Anaconda3\lib\site-
packages\selenium\webdriver\common\service.py", line 139, in stop
File "C:\Users\Santosh\Anaconda3\lib\site-
packages\selenium\webdriver\common\service.py", line 110, in 
send_remote_shutdown_command
ImportError: sys.meta_path is None, Python is likely shutting down

Please suggest a solution.

Thanks




Aucun commentaire:

Enregistrer un commentaire