Chaturbate API - Need Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • k33n
    Confirmed User
    • Feb 2009
    • 201

    #1

    Tech 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
    confirmed loser
    • Jul 2012
    • 1092

    #2
    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.
    Wikifap Cams
    Eporn List
    Is Chaturbate Still Number 1?

    Comment

    • sarettah
      see you later, I'm gone
      • Oct 2002
      • 14293

      #3
      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?

      .
      All cookies cleared!

      Comment

      • sarettah
        see you later, I'm gone
        • Oct 2002
        • 14293

        #4
        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.

        .
        All cookies cleared!

        Comment

        • sarettah
          see you later, I'm gone
          • Oct 2002
          • 14293

          #5
          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.

          .
          All cookies cleared!

          Comment

          • Panty Snatcher
            eat a peach for Hours
            • Aug 2013
            • 540

            #6
            the master has spoken

            Comment

            • k33n
              Confirmed User
              • Feb 2009
              • 201

              #7
              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!

              Comment

              • sarettah
                see you later, I'm gone
                • Oct 2002
                • 14293

                #8
                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";
                }


                .
                Last edited by sarettah; 08-24-2014, 04:45 AM.
                All cookies cleared!

                Comment

                • k33n
                  Confirmed User
                  • Feb 2009
                  • 201

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

                  Comment

                  • k33n
                    Confirmed User
                    • Feb 2009
                    • 201

                    #10
                    Originally posted by Panty Snatcher
                    the master has spoken
                    INDEED!

                    Comment

                    • sarettah
                      see you later, I'm gone
                      • Oct 2002
                      • 14293

                      #11
                      Originally posted by k33n
                      Thank you soooo much Sarettah.My website loads in 3-4 seconds now I've added a cache time and it works perfectly now.Thanks a lot!!!
                      Glad it worked for you.

                      .
                      All cookies cleared!

                      Comment

                      • Andreweb
                        Confirmed User
                        • Mar 2013
                        • 2431

                        #12
                        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
                        Make Money With: Chaturbate
                        Cheap Reliable Hosting

                        Comment

                        • sarettah
                          see you later, I'm gone
                          • Oct 2002
                          • 14293

                          #13
                          Originally posted by Andreweb
                          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

                          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.

                          .
                          All cookies cleared!

                          Comment

                          • CPA-Rush
                            small trip to underworld
                            • Mar 2012
                            • 4927

                            #14
                            Originally posted by Andreweb
                            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

                            automatic exchange - paxum , bitcoin,pm, payza

                            . daizzzy signbucks caution will black-hat black-hat your traffic

                            ignored forever :zuzana designs

                            Comment

                            • MTCCash
                              Registered User
                              • Jun 2014
                              • 53

                              #15
                              could you make your white label easier to use?

                              Ours is super simple
                              MyTubeCams Cash
                              Live Video Chat Affiliate Program

                              25% LFTM RevShare, 10% Affiliate Referral, 5% Performer/Studio Referral
                              http://cash.mytubecams.com
                              White Labels / Iframes / Flash Banners
                              Skype: tim.chirillo
                              ICQ: 431555157
                              [email protected]

                              Comment

                              • sarettah
                                see you later, I'm gone
                                • Oct 2002
                                • 14293

                                #16
                                Originally posted by MTCCash
                                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.

                                .
                                All cookies cleared!

                                Comment

                                • MTCCash
                                  Registered User
                                  • Jun 2014
                                  • 53

                                  #17
                                  I encourage everyone to try out our new White Label .. see sig
                                  MyTubeCams Cash
                                  Live Video Chat Affiliate Program

                                  25% LFTM RevShare, 10% Affiliate Referral, 5% Performer/Studio Referral
                                  http://cash.mytubecams.com
                                  White Labels / Iframes / Flash Banners
                                  Skype: tim.chirillo
                                  ICQ: 431555157
                                  [email protected]

                                  Comment

                                  • adulttemps
                                    Confirmed User
                                    • May 2002
                                    • 320

                                    #18
                                    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
                                    Hillipino Money with Cams

                                    Comment

                                    • Firestarter30
                                      Confirmed User
                                      • Sep 2010
                                      • 167

                                      #19
                                      Originally posted by adulttemps
                                      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

                                      Comment

                                      • phman79
                                        Confirmed User
                                        • Sep 2014
                                        • 260

                                        #20
                                        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
                                        Best Priced Adult Webhosting Company
                                        Live Milfs
                                        Live Strip Cams

                                        Comment

                                        • TitanWM
                                          Confirmed User
                                          • Dec 2015
                                          • 111

                                          #21
                                          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?
                                          CamSoda invite link - promote an unsatisfied cam site!

                                          Comment

                                          • Nick Tosser
                                            Confirmed User
                                            • Jun 2008
                                            • 174

                                            #22
                                            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 ?
                                            “We waste time looking for the perfect lover, instead of creating the perfect love.”
                                            ― Tom Robbins

                                            Comment

                                            • adulttemps
                                              Confirmed User
                                              • May 2002
                                              • 320

                                              #23
                                              Seems to work fine on iphone

                                              Originally posted by Nick Tosser
                                              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 ?
                                              Hillipino Money with Cams

                                              Comment

                                              • adulttemps
                                                Confirmed User
                                                • May 2002
                                                • 320

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


                                                Originally posted by TitanWM
                                                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?
                                                Hillipino Money with Cams

                                                Comment

                                                • adulttemps
                                                  Confirmed User
                                                  • May 2002
                                                  • 320

                                                  #25
                                                  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








                                                  Originally posted by TitanWM
                                                  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?
                                                  Hillipino Money with Cams

                                                  Comment

                                                  • Nick Tosser
                                                    Confirmed User
                                                    • Jun 2008
                                                    • 174

                                                    #26
                                                    Originally posted by adulttemps
                                                    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"
                                                    “We waste time looking for the perfect lover, instead of creating the perfect love.”
                                                    ― Tom Robbins

                                                    Comment

                                                    Working...