ayushdiagarwal / Manga-Scraper

This is a scraper that downloads manga from https://kissmanga.com/. Kissmanga is down now, probably forever, so this doesn't work now.
MIT License
7 stars 2 forks source link

Can't run the script #3

Closed othelloo closed 4 years ago

othelloo commented 4 years ago

hello

the script doesnt run at all and i have no idea if i did something wrong.

chromedriver is installed but allowing only local connections.

here is what i get.

C:\Users\Lasri\AppData\Local\Programs\Python\Python38-32\python.exe C:/Users/Lasri/Manga-Scrapper/manga.py Launching Web browser Silently... Traceback (most recent call last): File "C:/Users/Lasri/Manga-Scrapper/manga.py", line 184, in hey.basic() File "C:/Users/Lasri/Manga-Scrapper/manga.py", line 168, in basic self.browser = webdriver.Chrome(driver_path, options=Options) File "C:\Users\Lasri\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in init self.service.start() File "C:\Users\Lasri\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start self.process = subprocess.Popen(cmd, env=self.env, File "C:\Users\Lasri\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 854, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\Lasri\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 1247, in _execute_child args = list2cmdline(args) File "C:\Users\Lasri\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 549, in list2cmdline for arg in map(os.fsdecode, seq): File "C:\Users\Lasri\AppData\Local\Programs\Python\Python38-32\lib\os.py", line 818, in fsdecode filename = fspath(filename) # Does type-checking of filename. TypeError: expected str, bytes or os.PathLike object, not NoneType

Process finished with exit code 1

ayushdiagarwal commented 4 years ago

First of all, please download the newest version of the script as the version you downloaded might contain a bug. I wrote in the README.md file, that you have to save the location of chromedriver in environmental variable with the name of "chromedriver." Or if you want to try a easier way download the chromedriver of your chrome version and paste it in the same directory as the manga.py script. And change the line 33 of the script from driver_path = os.environ.get("chromedriver") to driver_path="chromedriver". That should work, if not, I'll try my best to help you out!

Also, if you're still facing any problem you might wanna see this video, https://www.youtube.com/watch?v=Xjv1sY630Uc, It's pretty helpful.

ayushdiagarwal commented 4 years ago

As this wasn't a issue with the script but you were having a problem running it and you haven't replied to me, I'm gonna be closing this issue in a day.

othelloo commented 4 years ago

Hello

Sorry for not answering you. Had other shit to deal with. But really thank you for your fast answer, i'll tell you if it worked as soon as i can check it peace

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Garanti sans virus. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Le ven. 29 mai 2020 à 14:25, Ayush Agarwal notifications@github.com a écrit :

As this wasn't a issue with the script but you were having a problem running it and you haven't replied to me, I'm gonna be closing this issue in a day.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/diayush/Manga-Scraper/issues/3#issuecomment-635944270, or unsubscribe https://github.com/notifications/unsubscribe-auth/APXOSLIWSRJLSWIOCWTTK4TRT6ST7ANCNFSM4NLRHWRQ .

-- Abdellah Lasri