GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Tech Chaturbate API - Need Help (https://gfy.com/showthread.php?t=1148389)

k33n 08-23-2014 12:16 PM

Chaturbate API - Need Help
 
Hello GFY members

I am using a script found on internet (nomoneyinporn) for my chaturbate xml based WL.I did some modifications to it,mostly visual,but i can't figure out how to speed it up.I did all i could find on the web,changed hosts,tried a VPS but didn't do the trick.My website speed is between 6 to 20 seconds to load,which is very bad.Visitors won't stay and BIG G gets very angry.From what i could see,80% of loading time is "waiting".I guess waiting in line to download resources from chaturbate.I found a couple of sites that are using the same API,not sure if the same script too,and they don't seem to have speed issues.I am thinking they somehow downloaded resources in the backend and are serving pages from their own server,avoiding long waiting time for the user.So please,if you know how,help me improve my website's speed.Many Thanks!

My website: Secsy dot net

gnawledge 08-23-2014 01:16 PM

I feel your pain man. I'm using it on a few domains and they are super slow like you said. I hope you searched high and low in the coding and stuff because they put their affiliate code in a lot of places where you may not see them.

sarettah 08-23-2014 01:50 PM

Hmm. the main reason for the speed issue is because the script is probably grabbing the xml file every time you navigate anywhere.

So, when the page initially loads..load the xml.
then when they click femals. load the xml.
then when they hit page 2. load the xml.

etc etc etc

Each time the xml loads, the script goes out to chaturbate, gets the file, pulls it across.

That page hit is probably the longest operation in any script doing this and sometimes chaturbate can time out while delivering the file. The entire time this is going on your site looks like it is doing nothing.

So, the best way to speed up something pulling this way is to pull the xml file once every so many minutes and store the info and then pull from the info store instead of from chaturbate.

that make sense?

.

sarettah 08-23-2014 02:25 PM

I looked at the script that is on nomoneyinporn, the one labeled CHATURBATE WHITELABEL SCRIPT.

What I would probably do with this.

1. Make a folder on the server to store a file in.
2. Put together a script to pull the xml file from chaturbate and write it to my folder.
3. Set up a cron to run that script every 5 minutes or so.
4. Everywhere in the script that calls the xml file, change the reference to call the file I wrote.

That will stop the site from having to go out to chaturbate on every nav change and should produce a significant improvement in performance.

.

sarettah 08-23-2014 03:38 PM

no money in porn script original version pulling xml from chaturbate each page change http://madspiders.com/nmip/indexv1.php

no money in porn script pulling xml locally each page change http://madspiders.com/nmip/indexv2.php

Difference is about 9 seconds.

.

Panty Snatcher 08-23-2014 05:13 PM

the master has spoken :)

k33n 08-24-2014 02:38 AM

Hi and thanks for joining this thread,

You are absolutely right Sarettah,i need to store info on my server,especially images.Here is how i think it should be:

1.call the original xml file from chaturbate
2.save images on local folder or db
3.create new xml with the data from original xml but updated image locations to local folder
4.change the xml file to call in the script
5.set a cronjob to update every 2-5 minutes

First of all,you should know that my programming skills are limited to html and css.In php i can only deal with echo and simple variables.But i can follow a tutorial,so right now im stuck at how to save images.After that i'll be stuck at how to create the new xml with updated image location.I saw your examples,and indeed,you took care of that waiting time.But to be honest i have no idea what you did or how you did it.So please,can you explain a little more?Thanks!

sarettah 08-24-2014 05:41 AM

You are overthinking it imho.

I would not do the images if I were you.

In my camfoxes.com I am letting chaturbate serve up the images. The only thing I am pulling serverside is the data and it appears to do fine.

just imho.

Pulling the xml file is pretty easy. use file_get_contents() to open the remote file. Use file_put_contents to write the local copy to disk.

$flname="/server file path/filename";
$url="xml url";
$data=file_get_contents($url);
if(!empty($data))
{
file_put_contents($flname,$data);
}
else
{
echo "Did not get a file back<br>\n";
}


.

k33n 08-24-2014 07:56 AM

Thank you soooo much Sarettah.My website loads in 3-4 seconds now :thumbsup I've added a cache time and it works perfectly now.Thanks a lot!!!

k33n 08-24-2014 08:00 AM

Quote:

Originally Posted by Panty Snatcher (Post 20202675)
the master has spoken :)

INDEED!:thumbsup

sarettah 08-24-2014 09:34 AM

Quote:

Originally Posted by k33n (Post 20203042)
Thank you soooo much Sarettah.My website loads in 3-4 seconds now :thumbsup I've added a cache time and it works perfectly now.Thanks a lot!!!

Glad it worked for you. :thumbsup

.

Andreweb 08-24-2014 11:18 AM

Wow your site is loading very fast now ! I tried to build a site using CB APIs but I didn't succed , and those free scripts are real slow :(

sarettah 08-24-2014 11:40 AM

Quote:

Originally Posted by Andreweb (Post 20203203)
Wow your site is loading very fast now ! I tried to build a site using CB APIs but I didn't succed , and those free scripts are real slow :(

Many things that are free are worth every cent you paid for them :thumbsup

On the nomoneyinporn script, looked at it and it is not bad for a freebie at all. There are some minor warning messages to be handled but other than that, it worked right out of the box.

The modification to put the file local and pull from it took less than 15 minutes to put together.

So, if you wanted to try again I am sure there are some people that would help you on it.

.

CPA-Rush 08-24-2014 09:16 PM

Quote:

Originally Posted by Andreweb (Post 20203203)
Wow your site is loading very fast now ! I tried to build a site using CB APIs but I didn't succed , and those free scripts are real slow :(

they are super slow bc they need pagination plus the caching

MTCCash 08-25-2014 11:25 AM

could you make your white label easier to use?

Ours is super simple

sarettah 08-25-2014 01:03 PM

Quote:

Originally Posted by MTCCash (Post 20204388)
could you make your white label easier to use?

Ours is super simple

Who are you asking?

If me, well, I am not a rep for anyone but me and I don't have a whitelabel.

.

MTCCash 08-26-2014 05:15 AM

I encourage everyone to try out our new White Label .. see sig

adulttemps 04-18-2016 11:12 PM

Just a quick update for anyone using this script, I have added some updates and it is now responsive. You can get the updated script here https://github.com/hillipino/Chaturbate-API

Firestarter30 08-17-2016 12:49 PM

Quote:

Originally Posted by adulttemps (Post 20845499)
Just a quick update for anyone using this script, I have added some updates and it is now responsive. You can get the updated script here https://github.com/hillipino/Chaturbate-API

Its a nice script i tested it today locally.
Any tips on integrating live cams on a bootstrap site?
Im actually interested in integrating specifically those 2 divs
Code:

<div class=row uniform>...<div>
and
Code:

<div class=sb_pager>...<div>
Thanks in advance

phman79 08-21-2016 04:42 PM

Hey
 
Thanks for the awesome script! I'm used to wordpress though and I don't know how to add a description for each page, its not pulling it when I check it out on analyzer

TitanWM 09-25-2016 12:20 PM

Can anyone tell me how to do that: sexcamlyDOTcom use the chaturbate api (an updated script I have seen here on GFY to download), but the iframes pointed to the same IP adress (sexcamlyDOTcom <--> cams.sexcamlyDOT.com have the same IP adresse). The subdomain looks like a whitelabel from chaturbate. Is the site hosted by chaturbate?

Nick Tosser 01-31-2017 02:48 PM

I have some troubles with my white label website www.hotcam4you.com only on smartphone i've this error message "HTTP 404 - Page Not Found" the video streaming no longer appear, what can i do ?

adulttemps 02-01-2017 10:12 PM

Seems to work fine on iphone

Quote:

Originally Posted by Nick Tosser (Post 21503941)
I have some troubles with my white label website www.hotcam4you.com only on smartphone i've this error message "HTTP 404 - Page Not Found" the video streaming no longer appear, what can i do ?


adulttemps 02-01-2017 10:14 PM

cams.sexcamly.com is a whitelabel hosted at chaturbate. The sexcamly.com site is just styled to look similar to the whitelabel.


Quote:

Originally Posted by TitanWM (Post 21183088)
Can anyone tell me how to do that: sexcamlyDOTcom use the chaturbate api (an updated script I have seen here on GFY to download), but the iframes pointed to the same IP adress (sexcamlyDOTcom <--> cams.sexcamlyDOT.com have the same IP adresse). The subdomain looks like a whitelabel from chaturbate. Is the site hosted by chaturbate?


adulttemps 02-01-2017 10:17 PM

In index.php you can set the page descriptions for the cams, just add the description where it says description.

$core->addCommand('cam', 'tpl_view_cams', SITENAME . ' - ' . $arg1 . '\'s Live Web Cam', 'Description','Keywords');

$arg1 is the username








Quote:

Originally Posted by TitanWM (Post 21183088)
Can anyone tell me how to do that: sexcamlyDOTcom use the chaturbate api (an updated script I have seen here on GFY to download), but the iframes pointed to the same IP adress (sexcamlyDOTcom <--> cams.sexcamlyDOT.com have the same IP adresse). The subdomain looks like a whitelabel from chaturbate. Is the site hosted by chaturbate?


Nick Tosser 02-02-2017 02:21 AM

Quote:

Originally Posted by adulttemps (Post 21507997)
In index.php you can set the page descriptions for the cams, just add the description where it says description.

$core->addCommand('cam', 'tpl_view_cams', SITENAME . ' - ' . $arg1 . '\'s Live Web Cam', 'Description','Keywords');

$arg1 is the username

1) On index.php i don't see anything like description ?


2) Chaturbate Customer support said: "We have deployed a fix for this issue, embedded videos will not be redirected to m.chaturbate"


All times are GMT -7. The time now is 05:18 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123