Comments (7)
using the main script will not work for pornhub, you need to use the api-for-own-servers script for it to work,
you can place it on the same server, this script uses HTTP Request2, because another method, such as CURL, will not work
if it still doesn't work let me know
from xvideos-pornhub-redtube-api.
using the main script will not work for pornhub, you need to use the api-for-own-servers script for it to work, you can place it on the same server, this script uses HTTP Request2, because another method, such as CURL, will not work
if it still doesn't work let me know
Can you tell me how to get the api-for-own-servers working? Ive got the main script working, but dont know how the api-for-own-servers works.. Do i need it to call it like : https://localhosti/api-for-own-servers/?url=https://www.xvideos.com/video59934029/
from xvideos-pornhub-redtube-api.
using the main script will not work for pornhub, you need to use the api-for-own-servers script for it to work, you can place it on the same server, this script uses HTTP Request2, because another method, such as CURL, will not work
if it still doesn't work let me knowCan you tell me how to get the api-for-own-servers working? Ive got the main script working, but dont know how the api-for-own-servers works.. Do i need it to call it like : https://localhosti/api-for-own-servers/?url=https://www.xvideos.com/video59934029/
yes, what api-for-own-servers does is to act as a proxy to make requests from it and not the main script, so you avoid burning the ip of the main server (the main script)
to use it, you must place it in the root or in any part of your server, then add it to the list of servers in sources.json
following the format shown there
I will take as an example the website https://appsdev.cyou/xv-ph-rt/
the main script is at https://appsdev.cyou/xv-ph-rt/ and the api-for-own-servers script is in https://tmp01.appsdev.cyou/
so in sources.json it would look like this
{
"id": "xvideos",
"url": "https://tmp01.appsdev.cyou/?url={url}",
"category": ["primary"],
"media": {
"hls": {
"all": "VideoHLS\\('(.*?)'\\)"
},
"mp4": {
"high": "High\\('(.*?)'\\)",
"low": "Low\\('(.*?)'\\)"
}
},
"data": {
"thumb": "ThumbUrl169\\('(.*?)'\\)",
"duration": "duration\" content=\"(.*?)\""
}
},
if the script is not in the root, indicate its location
Ex. https://tmp01.appsdev.cyou/api-for-own-servers/?url={url}
since we use our own server, you can set as many options as you want to get
and to test that you get content use:
https://tmp01.appsdev.cyou/?url=https://www.xvideos.com/video59934029/_&cookie_id=xvideos
changing the domain to yours
if you want to use pornhub you must use api-for-own-servers either on the same server or on another one
if you have more questions let me know
from xvideos-pornhub-redtube-api.
using the main script will not work for pornhub, you need to use the api-for-own-servers script for it to work, you can place it on the same server, this script uses HTTP Request2, because another method, such as CURL, will not work
if it still doesn't work let me knowCan you tell me how to get the api-for-own-servers working? Ive got the main script working, but dont know how the api-for-own-servers works.. Do i need it to call it like : https://localhosti/api-for-own-servers/?url=https://www.xvideos.com/video59934029/
yes, what api-for-own-servers does is to act as a proxy to make requests from it and not the main script, so you avoid burning the ip of the main server (the main script)
to use it, you must place it in the root or in any part of your server, then add it to the list of servers in sources.json following the format shown there
I will take as an example the website https://appsdev.cyou/xv-ph-rt/
the main script is at https://appsdev.cyou/xv-ph-rt/ and the api-for-own-servers script is in https://tmp01.appsdev.cyou/
so in sources.json it would look like this
{ "id": "xvideos", "url": "https://tmp01.appsdev.cyou/?url={url}", "category": ["primary"], "media": { "hls": { "all": "VideoHLS\\('(.*?)'\\)" }, "mp4": { "high": "High\\('(.*?)'\\)", "low": "Low\\('(.*?)'\\)" } }, "data": { "thumb": "ThumbUrl169\\('(.*?)'\\)", "duration": "duration\" content=\"(.*?)\"" } },if the script is not in the root, indicate its location Ex.
https://tmp01.appsdev.cyou/api-for-own-servers/?url={url}
since we use our own server, you can set as many options as you want to get
and to test that you get content use: https://tmp01.appsdev.cyou/?url=https://www.xvideos.com/video59934029/_&cookie_id=xvideos changing the domain to yours
if you want to use pornhub you must use api-for-own-servers either on the same server or on another one
if you have more questions let me know
Thanks for your detailed answer, its now clear.. But when I want to try fetch content from Pornhub or xvideos with the link you gave me https://{domain}.com/test/video/api-for-own-servers/?url=https://www.pornhub.com/view_video.php?viewkey=ph6116a13a48187/_&cookie_id=pornhub
I get a 500 error response code. What am I doing wrong, ive checked if the http2 request is enabled on my server, and it is... You got any idea what I am doing wrong?
from xvideos-pornhub-redtube-api.
Thanks for your detailed answer, its now clear.. But when I want to try fetch content from Pornhub or xvideos with the link you gave me
https://{domain}.com/test/video/api-for-own-servers/?url=https://www.pornhub.com/view_video.php?viewkey=ph6116a13a48187/_&cookie_id=pornhub
I get a 500 error response code. What am I doing wrong, ive checked if the http2 request is enabled on my server, and it is... You got any idea what I am doing wrong?
testing with the public api not to give any errors
https://tmp01.appsdev.cyou/?url=https://www.pornhub.com/view_video.php?viewkey=ph6116a13a48187/_&cookie_id=pornhub
but for pornhub, it is not necessary to include "/_", so it works.
https://tmp01.appsdev.cyou/?url=https://www.pornhub.com/view_video.php?viewkey=ph6116a13a48187&cookie_id=pornhub
check if you have an old version of the script, just yesterday I did some commits in which I updated several things
if it still doesn't work, there should be some error_log, you can show it for debugging
from xvideos-pornhub-redtube-api.
if it still doesn't work, there should be some error_log, you can show it for debugging
Got it working on another server with a recent Ubuntu kernel and newer PHP version.. Thanks!
from xvideos-pornhub-redtube-api.
great, any error, problem, improvement, suggestion, comment it.
from xvideos-pornhub-redtube-api.
Related Issues (18)
- Can you give me your email? HOT 1
- Where and how do I host the own server? HOT 1
- Pornhub videos are not worked
- Help
- pornhub not working
- Demo
- Add YouPorn and Tube8 HOT 2
- Help sir,, Update
- The script stopped working...
- Mun
- Pornhub mp4 links not reachable(Unauthorized) HOT 8
- Not working HOT 1
- Blank page HOT 2
- api-your-own-servers giving 500 error HOT 19
- high is empty HOT 2
- Own server Installation guide, please update HOT 2
- Mp4 HD
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xvideos-pornhub-redtube-api.