Cams - Chaturbate API V2 parsing via JavaScript
Collapse
X
-
TRUMP 2026 KEKAW!!! - The Laken Riley Act Is Law!
DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com -
Cheap VPS/Shared Hosting: RackNerd
Discord: Clown#5147
Projects: JuicySluts
Website: Clownonymous
Other Domains: JuicyBate - HornyFeed - Pimp Ink - Fansily
Skills: API/HTML/CSS/JS/PHP/PYTHONComment
-
TRUMP 2026 KEKAW!!! - The Laken Riley Act Is Law!
DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.comComment
-
Thank you for pointing that out sir. I verified with a friend that it indeed was putting out a 404 error. We discovered it was due to ad blockers blocking the javascript I was using the change pages. I am now reverting back to links hoping that will fix the issue.Cheap VPS/Shared Hosting: RackNerd
Discord: Clown#5147
Projects: JuicySluts
Website: Clownonymous
Other Domains: JuicyBate - HornyFeed - Pimp Ink - Fansily
Skills: API/HTML/CSS/JS/PHP/PYTHONComment
-
how do you embed the chat in this?TRUMP 2026 KEKAW!!! - The Laken Riley Act Is Law!
DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.comComment
-
Comment
-
hey, i guess that i had missed you asking this
not sure what you are wanting as an example, i use the version 2 api and embeds on https://camgirlbinge.com
.All cookies cleared!Comment
-
Hello teacher!
Hello sarettah
If you could please make a mobile responsive code for this wonderful fourth code you made?
I have been following you for a long time and for me you are the best teacher.
All my respect! Thank you on behalf of all those who learned from you!Comment
-
You can't just come up with your own responsive grid in css?
Any other beginner html designs you need sarettah to do for you?Comment
-
just buy a plugin or script. end of story...TRUMP 2026 KEKAW!!! - The Laken Riley Act Is Law!
DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.comComment
-
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
live camss > How to make a live cam site backlinks > hardlinks.orgComment
-
Here you go, I didn't test but you can try it
Code:<?php // edit area $wmid='JkjyU'; $tag='18'; $gender='f'; $limit=32; $camsdiv='camsdiv'; // end of edit area // pulling client ip $client_ip=''; if (isset($_SERVER['HTTP_CLIENT_IP']) && $_SERVER['HTTP_CLIENT_IP'] != "") { $clientip = addslashes($_SERVER['HTTP_CLIENT_IP']); } else if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR'] != "") { $clientip = addslashes($_SERVER['HTTP_X_FORWARDED_FOR']); } else { $clientip = addslashes($_SERVER['REMOTE_ADDR']); } // construct the api url $api_url="https://chaturbate.com/api/public/affiliates/onlinerooms/?wm=" . $wmid . "&format=xml&client_ip=" . $clientip; if($limit>0) { $api_url .="&limit=" . $limit; } if($tag>'') { $api_url .="&tag=" . $tag; } if($gender>'') { $api_url .="&gender=" . $gender; } ?> <html> <head> <base href="https://gfy.com/" /><!--[if IE]></base><![endif]--> <meta http-equiv="content-type" content="text/html; charset=windows-1250"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Example of pulling CB API Version 2</title> <style> .cams-container { display: flex; flex-wrap: wrap; justify-content: center; } .cams-item { width: 100%; max-width: 300px; margin-bottom: 20px; text-align: center; } .cams-item a { color: #000000; font-weight: bold; } .cams-item img { max-width: 90%; } </style> <script> function parse_data(data, camsdiv) { parser = new DOMParser(); xmlDoc = parser.parseFromString(data,"text/xml"); x=xmlDoc.getElementsByTagName("username"); txt=''; for (i = 0; i < x.length ;i++) { txt +='<div class="cams-item">'; txt +='<a rel=nofollow href=' + xmlDoc.getElementsByTagName("chat_room_url_revshare")[i].childNodes[0].nodeValue + '>'; txt +=xmlDoc.getElementsByTagName("username")[i].childNodes[0].nodeValue + '<br>'; txt +='<img src=' + xmlDoc.getElementsByTagName("image_url")[i].childNodes[0].nodeValue + '><br>'; txt +='</a>'; txt +='</div>'; document.getElementById(camsdiv).innerHTML +=txt; txt=''; } } </script> </head> <body> <div style="width:100%;text-align:center;"> <h1>Example of pulling Chaturbate API Version 2 using pure JavaScript</h1> <br> <div class="cams-container" name="camsdiv" id="camsdiv"></div> </div> <script> pathin="<?php echo $api_url; ?>"; if (window.XMLHttpRequest) { dirpage=new XMLHttpRequest(); } else { dirpage=new ActiveXObject("Microsoft.XMLHTTP"); } dirpage.onreadystatechange=function() { if (dirpage.readyState==4 && dirpage.status==200) { parse_data(dirpage.responseText, "<?php echo $camsdiv; ?>"); } } dirpage.open("GET",pathin,true); dirpage.send(); </script> </body> </html>Comment
-
Being a bad man is easy, it's harder to be a good man! And I didn't even ask you anything...
I asked Sarettah personally!
When I ask you personally, then react. OK?Comment
-
Comment
-
Comment
-
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
live camss > How to make a live cam site backlinks > hardlinks.orgComment
-
Taking a weekend to learn the basics of css and responsive design will not only help you for years down the road with your online ventures, it will also help develop your problem solving skills.
If anything, I am the good one encouraging growth and personal development, and sarretah is the bad one for spoonfeeding newbies and encouraging laziness and dependence
Comment
-
Comment
-
the thing about a forum is that anyone can read what's posted. so something posted for one person can benefit a bunch of others who are intent on learning. posting code can help those learning via a concrete example...everyone has a different learning style but I personally find examples super helpful, as a jumping off point beyond the basics of a topic, be it learning code or anything. like with my first uni paper...I had no idea how to format the cover page. a friend showed me one of hers and I was like, awesome, gotcha, gracias
I remember eons ago S you helped me change a page background color on my site that color plugins wouldn't fix. then, next time I updated my old theme your fix disappeared and I could not figure out how to fix it. google was of NO help
so my annoying azz hit you up again, you explained exactly what you did and I learned something new, that I had no idea about before
I remember it was changing the page background border using a pixel, not a hex code. had you explained that to me without me being able to see what went where based on your work, I would have not had a fucking clue what you were talking about I was so much of a newb
I guess I see posting a snippet of code here the same way?
anyway, you rock. or no, you suck cuz you don't like dancehall
I try to be tolerant though as no one is perfect
dUbster is an enabler as well but I'll reserve judgement until I learn more about his tastes in musicComment
-
Don't jump in without being asked!
Listen.. man, if you are a man!Taking a weekend to learn the basics of css and responsive design will not only help you for years down the road with your online ventures, it will also help develop your problem solving skills.
If anything, I am the good one encouraging growth and personal development, and sarretah is the bad one for spoonfeeding newbies and encouraging laziness and dependence
From what I can see, it seems that you are the one who, rather than helping, offends the members of this forum.
Show how you have helped this forum and I can show the admin of this forum through printscreens that you are not doing anything good other than offending the world!
And in terms of basic knowledge, it seems that you are the most novice in this fieldComment
-
It is based on the code posted by Sarettah, I just added codes for responsive menu and banner
This code belongs to Sarettah, whom I want to congratulate once again for the humanity he shows!
You can see and download the code from Sarettah's post #45Comment
-
you might want to ease up on Fuze. he's successful in adult and has been for years, navigating through all the twists and turns the biz has thrown at us from way before I even got into it myself
far as I'm concerned he's earned the right to be acerbic without being considered an asshole, which he is not
either way, this is gfy, not hug therapy. you've been here since 2014 and this offends you? 7 posts so I guess kinda new in that regard. you're in for a fun ride and also I bet you burned a bridge or two with that post. not wise
I wish you the best with your projectComment
-
thank you, i agree sarettah is great, so much help <3Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
live camss > How to make a live cam site backlinks > hardlinks.orgComment
-
I want help!
Hello sarettah ! Could you still explain the redirection of the "miracle folder" - webcams? This, of course, if you want to help me or maybe others who did not understand the same as me how you proceeded step by step! Thank you on behalf of all those who want to know how you did it!Comment
-
Hello sarettah ! Could you still explain the redirection of the "miracle folder" - webcams? This, of course, if you want to help me or maybe others who did not understand the same as me how you proceeded step by step! Thank you on behalf of all those who want to know how you did it!
Update! I want to say that I solved it myself. You can see the site from my signature "xcamadult" If you want you can explain it to others. Anyway, I still congratulate you for all your explanations...!Comment
-
It's a secret?Hello sarettah ! Could you still explain the redirection of the "miracle folder" - webcams? This, of course, if you want to help me or maybe others who did not understand the same as me how you proceeded step by step! Thank you on behalf of all those who want to know how you did it!
j/k. I use a php program in there to do a redirect to the actual cam page. That allows me to capture the hit in a database and also make decisions regarding the hit.
In that folder I have an htaccess fiole that redirects everything to the /webcams/index.php file. That file is the program that decides where to redirect to.
RewriteEngine On
RewriteRule ^(.*)$ index.php
For example, this is from the script I have in the webcams folder on milffoxes.
<?php
// hookitup is a function in my functions library that creates the database connection
$db=hookitup();
$tag="";
$redir="";
// pull in the requested address
$work=$_SERVER['REQUEST_URI'];
// split address at / to get at tag
if(substr_count($work,"/")>0)
{
$tag=strtolower(substr($work,strrpos($work,"/")+1));
$tag=trim(str_replace(".htm","",str_replace(".php" ,"",strtolower($tag))));
}
// if tag is webmaster signup redirect to webmaster sign up page
if($tag=='webmaster_signup')
{
$redir="https://chaturbate.com/in/?track=xxxxxx&tour=xxxxx&campaign=xxxxxx";
header('Location: ' . $redir);
exit;
}
// if tag is webcam model signup redirect to webcam model sign up page
if($tag=='webcam_model_signup')
{
$redir="https://chaturbate.com/in/?track=xxxxxx&tour=xxxxx&campaign=xxxxx";
header('Location: ' . $redir);
exit;
}
// do cookie read/set here.
$cookiename='unq';
if(!isset($_COOKIE['unq']))
{
$isuniq=1;
}
setcookie('unq',1,time()+2592000,'/');
if(isset($_COOKIE['camviews']))
{
$camviews=intval($_COOKIE['camviews']);
}
$camviews++;
setcookie('camviews',$camviews,time()+2592000,'/');
// 11012014 - do not count googlebot as unique
$gbot=0;
if(substr_count(strtolower($_SERVER['HTTP_USER_AGENT']),'googlebot')>0)
{
$isuniq=0;
$gbot=1;
}
$redir="https://milffoxes.com";
if(!empty($tag))
{
$redir="https://chaturbate.com/in/?tour=xxxxx&campaign=xxxxx&track=xxxxx&disable_sou nd=1&room=" . $tag;
}
if(!empty($tag))
{
$sql_str="insert into mf_hitcount(date, count, uniq, gbot) ";
$sql_str .="values('" . date("Y-m-d", time()-7200) . "', 1," . $isuniq . "," . $gbot .") ";
$sql_str .="on duplicate key update count=count+1, uniq=uniq+" . $isuniq . ", gbot=gbot+" . $gbot;
$db->query($sql_str);
}
header('Location: ' . $redir);
?>All cookies cleared!Comment
-
I used "wildcard" redirection from the server for that folder, which as you can see in the source of my site from the signature "xcamadult" which I named "models" with reference to my witelabel from chaturbate.
It works perfectly !
Anyway, thank you in my name and in the name of everyone who received teachings from you and did not thank you!Comment
-
You copied his code, but you left "MILF Foxes" in the text on your entry page.I used "wildcard" redirection from the server for that folder, which as you can see in the source of my site from the signature "xcamadult" which I named "models" with reference to my witelabel from chaturbate.
It works perfectly !
Anyway, thank you in my name and in the name of everyone who received teachings from you and did not thank you!
Comment
-
I set one up but I did it differently, I used wordpress with cyberseo.
It just pulls online cams every few minutes and updates the images and the links. All links clicked go to whitelabel. It's not finished as I was just testing with this one and I don't really push anything with this domain.
I'm sure it drives googlebot nuts with adding and deleting new blog posts every 5 minutes
https://videocamfriends.com
I'd love to get sarettah's code working inside wordpress.Comment
-
Comment
-
Sarettah, maybe you should push your code to a cloud function solution like firebase and sell it as a service.
Even if you don’t sell it, at least you’d be able to use your solution in any website without having to worry about your server specs or overloading the client’s browserskype: lordofthecameltoeComment
-
I will talk to you about this privately, thanksSarettah, maybe you should push your code to a cloud function solution like firebase and sell it as a service.
Even if you don’t sell it, at least you’d be able to use your solution in any website without having to worry about your server specs or overloading the client’s browserAll cookies cleared!Comment
-
Dunno how good you are with coding, but if you use IDE's like PHPstorm, there are Wordpress features that make it super easy to code anything for WP.
Just start with a basic plugin template and code out a few functions to ping APIs and interpret the data given back. Easy-peasyskype: lordofthecameltoeComment
-
Can't you just use the chaturbate cam listing promo tool for that ? like this way?I set one up but I did it differently, I used wordpress with cyberseo.
It just pulls online cams every few minutes and updates the images and the links. All links clicked go to whitelabel. It's not finished as I was just testing with this one and I don't really push anything with this domain.
I'm sure it drives googlebot nuts with adding and deleting new blog posts every 5 minutes
https://videocamfriends.com
I'd love to get sarettah's code working inside wordpress.
Can you adjust your site to create new pages for each model ? and have each model's image go to that created page? So time on site improves a lot too and number of pages indexedCode:<iframe src="https://cam.xrateduniversity.com/in/?tour=x1Rd&campaign=6qw7X&track=default&c=15&p=1&gender=x"></iframe>
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
live camss > How to make a live cam site backlinks > hardlinks.orgComment
-
Comment
-
I could, and it's a great idea and easy to do with cyberseo already. But it's not really what I'm wanting to do with a different site I'm working on. Not the site that I showed earlier.Can't you just use the chaturbate cam listing promo tool for that ? like this way?
Can you adjust your site to create new pages for each model ? and have each model's image go to that created page? So time on site improves a lot too and number of pages indexedCode:<iframe src="https://cam.xrateduniversity.com/in/?tour=x1Rd&campaign=6qw7X&track=default&c=15&p=1&gender=x"></iframe>

Comment


Comment