Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhantomJs is not o path #25474

Closed
gafarma89 opened this issue May 31, 2020 · 0 comments
Closed

PhantomJs is not o path #25474

gafarma89 opened this issue May 31, 2020 · 0 comments
Labels

Comments

@gafarma89
Copy link

@gafarma89 gafarma89 commented May 31, 2020

Hi,

  • [yes] I'm reporting a broken site support issue
  • [yes] I've verified that I'm running youtube-dl version 2020.05.29
  • [yes] I've checked that all provided URLs are alive and playable in a browser
  • [yes] I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • [yes] I've searched the bugtracker for similar bug reports including closed ones
  • [yes] I've read bugs section in FAQ

I use Ubuntu 20.04 64 bit English.

I can download videos from youtube but I can not download from pornhub. I found bugs on github about phantomjs but they are closed.

Note: Ubuntu 20.04 has "python3", but does not have "python" on path. So I create a symbolic link and added to PATH before run youtube-dl:

ln -s /usr/bin/python3 $HOME/apps/python-for-youtubedl

My problematic command is:

/home/xxuser/apps/youtube-dl/youtube-dl -v --rm-cache-dir -i --write-sub --sub-lang eng,en-GB https://www.pornhub.com/view_video.php\?viewkey\=ph5ea25480cc6a0

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--rm-cache-dir', '-i', '--write-sub', '--sub-lang', 'eng,en-GB', 'https://www.pornhub.com/view_video.php?viewkey=ph5ea25480cc6a0']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.05.29
[debug] Python version 3.8.2 (CPython) - Linux-5.4.0-33-generic-x86_64-with-glibc2.29
[debug] exe versions: none
[debug] Proxy map: {}
Removing cache dir /home/xxuser/.cache/youtube-dl ..
[PornHub] ph5ea25480cc6a0: Downloading pc webpage
ERROR: PhantomJS executable not found in PATH, download it from http://phantomjs.org
Traceback (most recent call last):
  File "/home/xxuser/apps/youtube-dl/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "/home/xxuser/apps/youtube-dl/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/home/xxuser/apps/youtube-dl/youtube-dl/youtube_dl/extractor/pornhub.py", line 187, in _real_extract
    webpage = dl_webpage('pc')
  File "/home/xxuser/apps/youtube-dl/youtube-dl/youtube_dl/extractor/pornhub.py", line 183, in dl_webpage
    return self._download_webpage(
  File "/home/xxuser/apps/youtube-dl/youtube-dl/youtube_dl/extractor/common.py", line 791, in _download_webpage
    res = self._download_webpage_handle(
  File "/home/xxuser/apps/youtube-dl/youtube-dl/youtube_dl/extractor/pornhub.py", line 43, in _download_webpage_handle
    phantom = PhantomJSwrapper(self, required_version='2.0')
  File "/home/xxuser/apps/youtube-dl/youtube-dl/youtube_dl/extractor/openload.py", line 115, in __init__
    raise ExtractorError('PhantomJS executable not found in PATH, '
youtube_dl.utils.ExtractorError: PhantomJS executable not found in PATH, download it from http://phantomjs.org

Thank you

@dstftw dstftw closed this May 31, 2020
@dstftw dstftw added the invalid label May 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.