Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[pornhub.com] ValueError: unknown url type: /*c783868bc0e01f259bca*/c783868bc0e01f259bca/*fdcbae*/... #12129
Comments
|
@ThomasChr Yeah! |
|
Even this simple calculation:
Leads to:
I think the JSInterpreter Class is not quite there yet... UPDATE: Okay, my fault. You need to set allow_recursion to a value, not to 'True' or 'False'.
|
|
@ThomasChr , @dstftw : |
|
It has a problem with comments, and it has a problem with string concatenation. This one works, but it's kind of stupid, the only think the JSInterpreter ist capable of is replacing the variables with ther values:
I'm doing: The output is:
|
|
Try js2py which is working perfectly, I'm already using it with our own PH parsing code. |
|
js2py seems perfect. I gave it a short shot and had no problems. I'm not quite sure if there is a better way to pass the variables, but it's working:
|
|
You're free to use js2py in your forks, but I won't accept patches with js2py as it uses exec() [1], which is a big security hole. [1] https://github.com/PiotrDabkowski/Js2Py/blob/627a6b9/js2py/evaljs.py#L175 |
|
@yan12125 Don't panic. I'm not trying to get any of my code accepted. I just want to give you some suggestions. Yeah, exec() is bad - we all know that. |
|
Me either. ;) |
|
Just a reminder :-) |
|
I did not state solution must use JSInterpreter. I said that I personally don't see much point in ad hoc solutions since they will most likely change obfuscation shortly. |
|
Hey sorry if im late in the convo. why use JSInterpreter for this? you can easily do it in python too ! i did implemented a solution in php. you just need to extract the one with "*/" in the front ! rest all are null values. lemme try doing that in python .. |
|
nah just tried its kind of complicated for me ! not worth my time bit busy with some other project too. I even don't do much python anyway ! here's my code
|
|
Today, 2017-02-15, pornhub.com changed again... it seems to be changed back! Reason: double quotes in video_urls, caused protocol parse error. |
|
yep confirmed! they just reverted back to same old technique !
|
|
This won't be fun, I think they are tracking your GIT repo :) |
|
@dhwz : I think too! :p |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.02.14. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
[issue]
http://www.pornhub.com/view_video.php?viewkey=ph588edef3b9f03
Can't be downloaded, error message is:
ValueError: unknown url type: /c783868bc0e01f259bca/c783868bc0e01f259bca/fdcbae/d5d92256fcc46f27d/edf2a757f7d5215004/fdcbae/a533b33fb773c0cee02/e19d715e98acc2f05022739abbe/a2f07b472cc9ea5506c14e6b/a2f07b472cc9ea5506c14e6b/d9efb8fed99c/d9efb8fed99c/b5160c30aac2a/c76952c6c6e3a5ec743d8ae3d4d2d/e19d715e98acc2f05022739abbe/fa1551ae8084a6b68a11f/e45adc12/bd62/be2f6ebe2a35af6378/e45adc12/b5160c30aac2a/be2f6ebe2a35af6378/cc51db0f9206969b8af8f6/da8bd/a533b33fb773c0cee02/a533b33fb773c0cee02/ed724b928c777b6b/ade/d9efb8fed99c/b5160c30aac2a/ade/c73100/be2f6ebe2a35af6378/ed724b928c777b6b/c76952c6c6e3a5ec743d8ae3d4d2d/ce0229a65a8cf91ff7731720/bd62/edf2a757f7d5215004/bd62/cd1742706bd8e18279b42/fdcbae/cc51db0f9206969b8af8f6
Reason: website code changed.
[Rolution]
Revised file: youtube_dl\extractor\pornhub.py
Replace old code with:
Problem solving.