Hi DrLinuxOfficial,
Interesting tooling! I get the problem which seems that a file can't be found by Windows. I tried by hardcoding the filename in audio_segment.py and reCaptchaBypasser.py, but the error below keeps existing.
I think in pydub\audio_segment.py the filename or PATH is not coming through the way it should. But what is the right filename and path and in which way to feed it to pydub\audio_segment.py , I haven't solved that yet.
Any idea where something might be going wrong and is it an issue to solve by coding?
FileNotFoundError Traceback (most recent call last)
Untitled-2 in
45 #Sleep Time For Check and Searching Element For reCaptcha Scraping & Defaulting SleepTime == 2 !!!
46 reCaptcha = reCaptchaScraper(driver, SleepTime=3)
----> 47 res = reCaptcha.reCaptchaGoogleV2()
48 if res["Response"] == True:
49 print("ByPassed !!!")
C:\ProgramData\Anaconda3\lib\site-packages\reCaptchaBypasser\reCaptchaBypasser.py in reCaptchaGoogleV2(self)
136 self.reCaptchaAudioButton()
137 sleep(1)
--> 138 self.SoundCaptcha()
139 Key_Text = self.SoundText()
140 self.reCaptchaTextFild(Text=Key_Text)
C:\ProgramData\Anaconda3\lib\site-packages\reCaptchaBypasser\reCaptchaBypasser.py in SoundCaptcha(self)
74 self.Downloader(Links=Link)
75 sleep(1)
---> 76 Sound = AudioSegment.from_mp3("Audio-Captcha/audio.mp3")
77 GenVoice = split_on_silence(
78 Sound,
C:\ProgramData\Anaconda3\lib\site-packages\pydub\audio_segment.py in from_mp3(cls, file, parameters)
794 @classmethod
795 def from_mp3(cls, file, parameters=None):
--> 796 return cls.from_file(file, 'mp3', parameters=parameters)
797
C:\ProgramData\Anaconda3\lib\site-packages\pydub\audio_segment.py in from_file(cls, file, format, codec, parameters, start_second, duration, **kwargs)
726 info = None
727 else:
--> 728 info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)
729 if info:
730 audio_streams = [x for x in info['streams']
C:\ProgramData\Anaconda3\lib\site-packages\pydub\utils.py in mediainfo_json(filepath, read_ahead_limit)
272
273 command = [prober, '-of', 'json'] + command_args
--> 274 res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
275 output, stderr = res.communicate(input=stdin_data)
276 output = output.decode("utf-8", 'ignore')
C:\ProgramData\Anaconda3\lib\subprocess.py in init(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, user, group, extra_groups, encoding, errors, text, umask)
949 encoding=encoding, errors=errors)
950
--> 951 self._execute_child(args, executable, preexec_fn, close_fds,
952 pass_fds, cwd, env,
953 startupinfo, creationflags, shell,
C:\ProgramData\Anaconda3\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_gid, unused_gids, unused_uid, unused_umask, unused_start_new_session)
1418 # Start the process
1419 try:
-> 1420 hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
1421 # no special security
1422 None, None,
FileNotFoundError: [WinError 2] The system cannot find the file specified