AgiMaulana / Instagram-Comments-Scraper

Instagram comment scraper using python and selenium. Save the comments into excel.
MIT License
137 stars 44 forks source link

Issue while running script #2

Closed alisentinel closed 4 years ago

alisentinel commented 5 years ago

Hello, I tried to use this script to export my post comments but it returned me this error:

DevTools listening on ws://127.0.0.1:50372/devtools/browser/27e55efd-868a-47ee-be40-8ea50e4f0fdc [8516:1592:0609/184722.876:ERROR:browser_process_sub_thread.cc(221)] Waited 420 ms for network service And suddenly closed the chrome web drive

How to resolve it? Thanks

AgiMaulana commented 5 years ago

did you run the script on Windows? If yes, you can check this first perhaps this explanation can help you https://stackoverflow.com/a/56485360/2741453

alisentinel commented 5 years ago

Yes, I'm using windows 10, I tried to resolve it but I couldn't I added some arguments to webdriver but nothing changed Here is my new code:


from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument("--enable-features=NetworkService")
chrome_options.add_argument("--enable-features=NetworkServiceWindowsSandbox")
driver = webdriver.Chrome(options=chrome_options)
alisentinel commented 5 years ago

Yes, I'm using windows 10, I tried to resolve it but I couldn't I added some arguments to webdriver but nothing changed Here is my new code:

from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument("--enable-features=NetworkService")
chrome_options.add_argument("--enable-features=NetworkServiceWindowsSandbox")
driver = webdriver.Chrome(options=chrome_options)

For more details I've turned on the VERBOSE level, pasted the output here: https://pastebin.com/fBciFt2X

AgiMaulana commented 5 years ago

according to this and this Stackoverflow's question, please update your chrome and chromedriver version

AgiMaulana commented 4 years ago

there is no an update from the author. I decided to close this issue.